WordPress.org

Make WordPress Core

Changeset 47862


Ignore:
Timestamp:
05/28/2020 10:00:44 AM (16 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/_index.php.

See #49542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/_index.php

    r47198 r47862  
    119119    $classes = 'welcome-panel';
    120120
    121     $option = get_user_meta( get_current_user_id(), 'show_welcome_panel', true );
     121    $option = (int) get_user_meta( get_current_user_id(), 'show_welcome_panel', true );
    122122    // 0 = hide, 1 = toggled to show or single site creator, 2 = multisite site owner.
    123     $hide = 0 == $option || ( 2 == $option && wp_get_current_user()->user_email != get_option( 'admin_email' ) );
     123    $hide = ( 0 === $option || ( 2 === $option && wp_get_current_user()->user_email !== get_option( 'admin_email' ) ) );
    124124    if ( $hide ) {
    125125        $classes .= ' hidden';
Note: See TracChangeset for help on using the changeset viewer.