From 7f73f1a1e4f9efe5e2ffef04d396b83834d1c5c6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 28 May 2020 10:00:44 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-admin/_index.php`. See #49542. git-svn-id: https://develop.svn.wordpress.org/trunk@47862 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/_index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/_index.php b/src/wp-admin/_index.php index 9368c06966..3b3519b1a2 100644 --- a/src/wp-admin/_index.php +++ b/src/wp-admin/_index.php @@ -118,9 +118,9 @@ require_once ABSPATH . 'wp-admin/admin-header.php'; if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) : $classes = 'welcome-panel'; - $option = get_user_meta( get_current_user_id(), 'show_welcome_panel', true ); + $option = (int) get_user_meta( get_current_user_id(), 'show_welcome_panel', true ); // 0 = hide, 1 = toggled to show or single site creator, 2 = multisite site owner. - $hide = 0 == $option || ( 2 == $option && wp_get_current_user()->user_email != get_option( 'admin_email' ) ); + $hide = ( 0 === $option || ( 2 === $option && wp_get_current_user()->user_email !== get_option( 'admin_email' ) ) ); if ( $hide ) { $classes .= ' hidden'; }