Ticket #25416: 25416.diff
File 25416.diff, 713 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/includes/post.php
1363 1363 // If the new autosave has the same content as the post, delete the autosave. 1364 1364 $post = get_post( $post_id ); 1365 1365 $autosave_is_different = false; 1366 foreach ( array_ keys( _wp_post_revision_fields() ) as $field ) {1366 foreach ( array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields() ) ) as $field ) { 1367 1367 if ( normalize_whitespace( $new_autosave[ $field ] ) != normalize_whitespace( $post->$field ) ) { 1368 1368 $autosave_is_different = true; 1369 1369 break;