We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9956c86 commit 30e6860Copy full SHA for 30e6860
src/wp-includes/revision.php
@@ -187,7 +187,7 @@ function wp_save_post_revision( $post_id ) {
187
$post_has_changed = false;
188
189
foreach ( array_keys( _wp_post_revision_fields( $post ) ) as $field ) {
190
- if ( normalize_whitespace( $post->$field ) !== normalize_whitespace( $latest_revision->$field ) ) {
+ if ( normalize_whitespace( serialize( $post->$field ) ) !== normalize_whitespace( serialize( $latest_revision->$field ) ) ) {
191
$post_has_changed = true;
192
break;
193
}
0 commit comments