WordPress.org

Make WordPress Core

Changeset 24192


Ignore:
Timestamp:
05/07/13 20:34:58 (12 months ago)
Author:
markjaquith
Message:

Go back to plain text diffs between revisions instead of attempting partial rendering.

fixes #24254

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ajax-actions.php

    r24188 r24192  
    21592159            $right_content = apply_filters( "_wp_post_revision_field_$field", $right_revision->$field, $field, $right_revision, 'right' ); 
    21602160 
    2161             add_filter( "_wp_post_revision_field_$field", 'wp_kses_post' ); 
     2161            add_filter( "_wp_post_revision_field_$field", 'htmlspecialchars' ); 
    21622162 
    21632163            $args = array(); 
  • trunk/wp-includes/wp-diff.php

    r23506 r24192  
    155155        foreach ($lines as $line) { 
    156156            if ( $encode ) 
    157                 $line = wp_kses_post( $line ); 
     157                $line = htmlspecialchars( $line ); 
    158158            if ( $this->_show_split_view ) { 
    159159                $r .= '<tr>' . $this->emptyLine() . $this->emptyLine() . $this->addedLine( $line ) . "</tr>\n"; 
     
    177177        foreach ($lines as $line) { 
    178178            if ( $encode ) 
    179                 $line = wp_kses_post( $line ); 
     179                $line = htmlspecialchars( $line ); 
    180180            if ( $this->_show_split_view ) { 
    181181                $r .= '<tr>' . $this->deletedLine( $line ) . $this->emptyLine() . $this->emptyLine() . "</tr>\n"; 
     
    200200        foreach ($lines as $line) { 
    201201            if ( $encode ) 
    202                 $line = wp_kses_post( $line ); 
     202                $line = htmlspecialchars( $line ); 
    203203            if (  $this->_show_split_view ) { 
    204204                $r .= '<tr>' . $this->contextLine( $line ) . $this->emptyLine() . $this->contextLine( $line )  . "</tr>\n"; 
Note: See TracChangeset for help on using the changeset viewer.