From 68c91998191751acbab338866a70aed19952d843 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sun, 28 Jul 2013 23:28:21 +0000 Subject: [PATCH] Rename the new 'left'/'right' flags on the `_wp_post_revision_field_$field` filter to 'from'/'to'. Fixes #24848 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@24835 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/revision.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/revision.php b/wp-admin/includes/revision.php index 5fb6c44559..0090ab5fc5 100644 --- a/wp-admin/includes/revision.php +++ b/wp-admin/includes/revision.php @@ -55,8 +55,8 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) { $return = array(); foreach ( _wp_post_revision_fields() as $field => $name ) { - $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'left' ) : ''; - $content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'right' ); + $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'from' ) : ''; + $content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'to' ); $diff = wp_text_diff( $content_from, $content_to, array( 'show_split_view' => true ) );