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
This commit is contained in:
Sergey Biryukov 2020-05-28 10:00:44 +00:00
parent cfc5b94f28
commit 7f73f1a1e4
1 changed files with 2 additions and 2 deletions

View File

@ -118,9 +118,9 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) : if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) :
$classes = 'welcome-panel'; $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. // 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 ) { if ( $hide ) {
$classes .= ' hidden'; $classes .= ' hidden';
} }