Changeset 30497
- Timestamp:
- 11/21/2014 03:49:43 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/revision.php
r30396 r30497 77 77 'show_split_view' => false 78 78 ); 79 79 80 /** 80 81 * Filter revisions text diff options. 81 82 * 82 * Filter the options passed to `wp_text_diff()`when viewing a post revision.83 * Filter the options passed to {@see wp_text_diff()} when viewing a post revision. 83 84 * 84 85 * @since 4.1.0 85 86 * 86 87 * @param array $args { 87 * Associative array of options to pass to `wp_text_diff()`.88 * Associative array of options to pass to {@see wp_text_diff()}. 88 89 * 89 90 * @type bool $show_split_view False for split view (two columns), true for … … 95 96 */ 96 97 $args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to ); 98 97 99 $diff = wp_text_diff( $content_from, $content_to, $args ); 98 100 -
trunk/src/wp-includes/wp-diff.php
r30396 r30497 195 195 if ( $encode ) { 196 196 $processed_line = htmlspecialchars( $line ); 197 197 198 /** This filter is documented in wp-includes/wp-diff.php */ 198 199 $line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'deleted' ); … … 221 222 if ( $encode ) { 222 223 $processed_line = htmlspecialchars( $line ); 224 223 225 /** This filter is documented in wp-includes/wp-diff.php */ 224 226 $line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'unchanged' );
Note: See TracChangeset
for help on using the changeset viewer.