diff --git a/wp-includes/post.php b/wp-includes/post.php index 88d74a6bc9..ae688a3470 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3000,7 +3000,7 @@ function _reset_front_page_settings_for_post( $post_id ) { update_option( 'page_on_front', 0 ); } if ( get_option( 'page_for_posts' ) == $post->ID ) { - delete_option( 'page_for_posts', 0 ); + update_option( 'page_for_posts', 0 ); } } unstick_post( $post->ID ); diff --git a/wp-includes/version.php b/wp-includes/version.php index f10f0ba315..d3946f06b7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45745'; +$wp_version = '5.3-alpha-45746'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.