Coding Standards: Use strict comparison in _reset_front_page_settings_for_post().

Follow-up to [6337], [25686].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@59572


git-svn-id: http://core.svn.wordpress.org/trunk@58958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2025-01-02 18:27:23 +00:00
parent bb1d172850
commit 1ea8475be2
2 changed files with 3 additions and 3 deletions

View File

@ -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 );
}
}

View File

@ -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.