Make WordPress Core

Changeset 24835


Ignore:
Timestamp:
07/28/2013 11:28:21 PM (11 years ago)
Author:
markjaquith
Message:

Rename the new 'left'/'right' flags on the _wp_post_revision_field_$field filter to 'from'/'to'.

Fixes #24848 for trunk.

File:
1 edited

Legend:

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

    r24804 r24835  
    5656
    5757    foreach ( _wp_post_revision_fields() as $field => $name ) {
    58         $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'left' ) : '';
    59         $content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'right' );
     58        $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'from' ) : '';
     59        $content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'to' );
    6060
    6161        $diff = wp_text_diff( $content_from, $content_to, array( 'show_split_view' => true ) );
Note: See TracChangeset for help on using the changeset viewer.