Changeset 47372
- Timestamp:
- 02/25/2020 07:33:22 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r47222 r47372 246 246 if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) { 247 247 foreach ( _wp_post_revision_fields( $post ) as $autosave_field => $_autosave_field ) { 248 if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) {248 if ( normalize_whitespace( $autosave->$autosave_field ) !== normalize_whitespace( $post->$autosave_field ) ) { 249 249 $notice = sprintf( 250 250 /* translators: %s: URL to view the autosave. */ -
trunk/src/wp-admin/includes/post.php
r47222 r47372 1830 1830 $autosave_is_different = false; 1831 1831 foreach ( array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields( $post ) ) ) as $field ) { 1832 if ( normalize_whitespace( $new_autosave[ $field ] ) != normalize_whitespace( $post->$field ) ) {1832 if ( normalize_whitespace( $new_autosave[ $field ] ) !== normalize_whitespace( $post->$field ) ) { 1833 1833 $autosave_is_different = true; 1834 1834 break; -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
r47122 r47372 369 369 370 370 foreach ( array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields( $post ) ) ) as $field ) { 371 if ( normalize_whitespace( $new_autosave[ $field ] ) != normalize_whitespace( $post->$field ) ) {371 if ( normalize_whitespace( $new_autosave[ $field ] ) !== normalize_whitespace( $post->$field ) ) { 372 372 $autosave_is_different = true; 373 373 break; -
trunk/src/wp-includes/revision.php
r47219 r47372 163 163 164 164 foreach ( array_keys( _wp_post_revision_fields( $post ) ) as $field ) { 165 if ( normalize_whitespace( $post->$field ) != normalize_whitespace( $last_revision->$field ) ) {165 if ( normalize_whitespace( $post->$field ) !== normalize_whitespace( $last_revision->$field ) ) { 166 166 $post_has_changed = true; 167 167 break;
Note: See TracChangeset
for help on using the changeset viewer.