From 7b11f12d96e50b4b0bf1cb8ec9c22424e22cb30d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 5 Aug 2019 12:51:33 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-admin/options-reading.php`. Props subrataemfluence. Fixes #46834. git-svn-id: https://develop.svn.wordpress.org/trunk@45752 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/options-reading.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/options-reading.php b/src/wp-admin/options-reading.php index d49b5025a5..9ce6dd3ee1 100644 --- a/src/wp-admin/options-reading.php +++ b/src/wp-admin/options-reading.php @@ -68,7 +68,7 @@ if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', ' endif; else : - if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) { + if ( 'page' === get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) { update_option( 'show_on_front', 'posts' ); } ?> @@ -120,7 +120,7 @@ else : ?> - +

Warning: these pages should not be the same!' ); ?>