diff --git a/wp-includes/revision.php b/wp-includes/revision.php index 5a090aaf58..630a06d23a 100644 --- a/wp-includes/revision.php +++ b/wp-includes/revision.php @@ -331,7 +331,7 @@ function _wp_put_post_revision( $post = null, $autosave = false ) { $post = _wp_post_revision_data( $post, $autosave ); $post = wp_slash( $post ); // Since data is from DB. - $revision_id = wp_insert_post( $post ); + $revision_id = wp_insert_post( $post, true ); if ( is_wp_error( $revision_id ) ) { return $revision_id; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 1949a317a6..268ba3b3ba 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-51123'; +$wp_version = '5.8-alpha-51124'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.