Changeset 24192
- Timestamp:
- 05/07/2013 08:34:58 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-admin/includes/ajax-actions.php (modified) (1 diff)
-
wp-includes/wp-diff.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r24188 r24192 2159 2159 $right_content = apply_filters( "_wp_post_revision_field_$field", $right_revision->$field, $field, $right_revision, 'right' ); 2160 2160 2161 add_filter( "_wp_post_revision_field_$field", ' wp_kses_post' );2161 add_filter( "_wp_post_revision_field_$field", 'htmlspecialchars' ); 2162 2162 2163 2163 $args = array(); -
trunk/wp-includes/wp-diff.php
r23506 r24192 155 155 foreach ($lines as $line) { 156 156 if ( $encode ) 157 $line = wp_kses_post( $line );157 $line = htmlspecialchars( $line ); 158 158 if ( $this->_show_split_view ) { 159 159 $r .= '<tr>' . $this->emptyLine() . $this->emptyLine() . $this->addedLine( $line ) . "</tr>\n"; … … 177 177 foreach ($lines as $line) { 178 178 if ( $encode ) 179 $line = wp_kses_post( $line );179 $line = htmlspecialchars( $line ); 180 180 if ( $this->_show_split_view ) { 181 181 $r .= '<tr>' . $this->deletedLine( $line ) . $this->emptyLine() . $this->emptyLine() . "</tr>\n"; … … 200 200 foreach ($lines as $line) { 201 201 if ( $encode ) 202 $line = wp_kses_post( $line );202 $line = htmlspecialchars( $line ); 203 203 if ( $this->_show_split_view ) { 204 204 $r .= '<tr>' . $this->contextLine( $line ) . $this->emptyLine() . $this->contextLine( $line ) . "</tr>\n";
Note: See TracChangeset
for help on using the changeset viewer.