Changeset 23994 for trunk/wp-admin/includes/ajax-actions.php
- Timestamp:
- 04/15/2013 06:40:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r23982 r23994 2136 2136 $content = ''; 2137 2137 //compare from left to right, passed from application 2138 foreach ( array_keys( _wp_post_revision_fields() ) as $field) {2138 foreach ( _wp_post_revision_fields() as $field => $field_value ) { 2139 2139 $left_content = apply_filters( "_wp_post_revision_field_$field", $left_revision->$field, $field, $left_revision, 'left' ); 2140 2140 $right_content = apply_filters( "_wp_post_revision_field_$field", $right_revision->$field, $field, $right_revision, 'right' ); … … 2150 2150 $diff = wp_text_diff_with_count( ( 0 == $compare_to ) ? '' : $left_content, $right_content, $args ); 2151 2151 2152 if ( isset( $diff[ 'html' ] ) ) 2152 if ( isset( $diff[ 'html' ] ) ) { 2153 $content .= sprintf( '<div class="diff-label">%s</div>', $field_value ); 2153 2154 $content .= $diff[ 'html' ]; 2155 } 2154 2156 2155 2157 if ( isset( $diff[ 'lines_added' ] ) )
Note: See TracChangeset
for help on using the changeset viewer.