Skip to content

Commit

Permalink
Coding Standards: Use strict comparison in wp-admin/_index.php.
Browse files Browse the repository at this point in the history
See #49542.

git-svn-id: https://develop.svn.wordpress.org/trunk@47862 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed May 28, 2020
1 parent cfc5b94 commit 7f73f1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-admin/_index.php
Expand Up @@ -118,9 +118,9 @@
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';
}
Expand Down

0 comments on commit 7f73f1a

Please sign in to comment.