Changeset 23415
- Timestamp:
- 02/14/2013 04:45:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r23414 r23415 4948 4948 return; 4949 4949 4950 // if new data is supplied, check that it is different from last saved revision 4951 if (is_array( $new_data ) ) {4950 // if new data is supplied, check that it is different from last saved revision, unless a plugin tells us to always save regardless 4951 if ( apply_filters( 'wp_save_post_revision_check_for_changes', true, $post, $new_data ) && is_array( $new_data ) ) { 4952 4952 $post_has_changed = false; 4953 foreach ( array_keys( _wp_post_revision_fields() ) as $field ) {4954 if ( normalize_whitespace( $new_data[ $field ] ) != normalize_whitespace( $post[ $field ] ) ) {4953 foreach ( array_keys( _wp_post_revision_fields() ) as $field ) { 4954 if ( normalize_whitespace( $new_data[ $field ] ) != normalize_whitespace( $post[ $field ] ) ) { 4955 4955 $post_has_changed = true; 4956 4956 break;
Note: See TracChangeset
for help on using the changeset viewer.