diff --git a/wp-admin/includes/revision.php b/wp-admin/includes/revision.php index 164129d10f..11b991dbf8 100644 --- a/wp-admin/includes/revision.php +++ b/wp-admin/includes/revision.php @@ -76,15 +76,16 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) { $args = array( 'show_split_view' => false ); + /** * Filter revisions text diff options. * - * Filter the options passed to `wp_text_diff()` when viewing a post revision. + * Filter the options passed to {@see wp_text_diff()} when viewing a post revision. * * @since 4.1.0 * * @param array $args { - * Associative array of options to pass to `wp_text_diff()`. + * Associative array of options to pass to {@see wp_text_diff()}. * * @type bool $show_split_view False for split view (two columns), true for * un-split view (single column). Default false. @@ -94,6 +95,7 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) { * @param WP_Post $compare_to The revision post to compare to. */ $args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to ); + $diff = wp_text_diff( $content_from, $content_to, $args ); if ( ! $diff && 'post_title' === $field ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index dcaea7fa7d..bbda00f08e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta2-30496'; +$wp_version = '4.1-beta2-30497'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/wp-diff.php b/wp-includes/wp-diff.php index 9b1b5e093a..77efd45533 100644 --- a/wp-includes/wp-diff.php +++ b/wp-includes/wp-diff.php @@ -194,6 +194,7 @@ class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer { foreach ($lines as $line) { if ( $encode ) { $processed_line = htmlspecialchars( $line ); + /** This filter is documented in wp-includes/wp-diff.php */ $line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'deleted' ); } @@ -220,6 +221,7 @@ class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer { foreach ($lines as $line) { if ( $encode ) { $processed_line = htmlspecialchars( $line ); + /** This filter is documented in wp-includes/wp-diff.php */ $line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'unchanged' ); }