WordPress.org

Make WordPress Core

Changeset 24836


Ignore:
Timestamp:
07/28/13 23:28:25 (9 months ago)
Author:
markjaquith
Message:

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

Fixes #24848 for 3.6.

File:
1 edited

Legend:

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

    r24804 r24836  
    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.