mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-06 13:44:30 +00:00
Go back to plain text diffs between revisions instead of attempting partial rendering.
fixes #24254 git-svn-id: https://develop.svn.wordpress.org/trunk@24192 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -154,7 +154,7 @@ class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer {
|
||||
$r = '';
|
||||
foreach ($lines as $line) {
|
||||
if ( $encode )
|
||||
$line = wp_kses_post( $line );
|
||||
$line = htmlspecialchars( $line );
|
||||
if ( $this->_show_split_view ) {
|
||||
$r .= '<tr>' . $this->emptyLine() . $this->emptyLine() . $this->addedLine( $line ) . "</tr>\n";
|
||||
} else {
|
||||
@@ -176,7 +176,7 @@ class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer {
|
||||
$r = '';
|
||||
foreach ($lines as $line) {
|
||||
if ( $encode )
|
||||
$line = wp_kses_post( $line );
|
||||
$line = htmlspecialchars( $line );
|
||||
if ( $this->_show_split_view ) {
|
||||
$r .= '<tr>' . $this->deletedLine( $line ) . $this->emptyLine() . $this->emptyLine() . "</tr>\n";
|
||||
} else {
|
||||
@@ -199,7 +199,7 @@ class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer {
|
||||
$r = '';
|
||||
foreach ($lines as $line) {
|
||||
if ( $encode )
|
||||
$line = wp_kses_post( $line );
|
||||
$line = htmlspecialchars( $line );
|
||||
if ( $this->_show_split_view ) {
|
||||
$r .= '<tr>' . $this->contextLine( $line ) . $this->emptyLine() . $this->contextLine( $line ) . "</tr>\n";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user