diff --git a/wp-includes/post.php b/wp-includes/post.php index 3c3a422430..a197180d9e 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3859,11 +3859,11 @@ function _reset_front_page_settings_for_post( $post_id ) { * If the page is defined in option page_on_front or post_for_posts, * adjust the corresponding options. */ - if ( get_option( 'page_on_front' ) == $post->ID ) { + if ( (int) get_option( 'page_on_front' ) === $post->ID ) { update_option( 'show_on_front', 'posts' ); update_option( 'page_on_front', 0 ); } - if ( get_option( 'page_for_posts' ) == $post->ID ) { + if ( (int) get_option( 'page_for_posts' ) === $post->ID ) { update_option( 'page_for_posts', 0 ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index e8b6015fd7..b3ed9221a2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59571'; +$wp_version = '6.8-alpha-59572'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.