WordPress.org

Make WordPress Core

Ticket #19535: 19535.patch

File 19535.patch, 570 bytes (added by johnjamesjacoby, 6 years ago)
  • wp-includes/admin-bar.php

     
    275275        if ( ! is_user_logged_in() || ! is_multisite() )
    276276                return;
    277277
    278         // Show only when the user has at least one site, or they're a super admin.
    279         if ( count( $wp_admin_bar->user->blogs ) < 1 && ! is_super_admin() )
     278        // Show only when the user has more than one site, or they're a super admin.
     279        if ( count( $wp_admin_bar->user->blogs ) <= 1 && ! is_super_admin() )
    280280                return;
    281281
    282282        $wp_admin_bar->add_menu( array(