Make WordPress Core

Ticket #49239: index.php.patch

File index.php.patch, 609 bytes (added by pikamander2, 6 years ago)
  • index.php

     
    120120
    121121        $option = 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';
    126126        }