diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php
index d230667..f951f10 100644
--- a/wp-admin/includes/post.php
+++ b/wp-admin/includes/post.php
@@ -1532,13 +1532,24 @@ function wp_create_post_autosave( $post_data ) {
 		// If the new autosave has the same content as the post, delete the autosave.
 		$post = get_post( $post_id );
 		$autosave_is_different = false;
+
 		foreach ( array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields() ) ) as $field ) {
-			if ( normalize_whitespace( $new_autosave[ $field ] ) != normalize_whitespace( $post->$field ) ) {
-				$autosave_is_different = true;
-				break;
+
+			if ( is_string( $new_autosave[ $field ] ) && is_string( $post->$field ) ) {
+				if ( normalize_whitespace( $new_autosave[ $field ] ) != normalize_whitespace( $post->$field ) ) {
+					$autosave_is_different = true;
+					break;
+				}
+			} else {
+				if ( $new_autosave[ $field ] != $post->$field ) {
+					$autosave_is_different = true;
+					break;
+				}
 			}
+
 		}
 
+
 		if ( ! $autosave_is_different ) {
 			wp_delete_post_revision( $old_autosave->ID );
 			return 0;
