From 2ac34c799bb769d41796a063f30d421540965faf Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 5 Aug 2019 12:52:56 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-admin/options-reading.php`. Props subrataemfluence. Fixes #46834. Built from https://develop.svn.wordpress.org/trunk@45752 git-svn-id: http://core.svn.wordpress.org/trunk@45563 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-reading.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php index d49b5025a5..9ce6dd3ee1 100644 --- a/wp-admin/options-reading.php +++ b/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!' ); ?>

diff --git a/wp-includes/version.php b/wp-includes/version.php index 5bedabda24..6f668f4937 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45751'; +$wp_version = '5.3-alpha-45752'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.