diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
index a72541a1ee..837d15146d 100644
|
a
|
b
|
class WP_REST_Autosaves_Controller extends WP_REST_Revisions_Controller { |
| 349 | 349 | $autosave_is_different = false; |
| 350 | 350 | |
| 351 | 351 | foreach ( array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields( $post ) ) ) as $field ) { |
| 352 | | if ( normalize_whitespace( $new_autosave[ $field ] ) != normalize_whitespace( $post->$field ) ) { |
| | 352 | if ( normalize_whitespace( $new_autosave[ $field ] ) !== normalize_whitespace( $post->$field ) ) { |
| 353 | 353 | $autosave_is_different = true; |
| 354 | 354 | break; |
| 355 | 355 | } |