Ticket #18990: 18990.patch
File 18990.patch, 656 bytes (added by , 13 years ago) |
---|
-
wp-includes/admin-bar.php
288 288 if ( ! is_user_logged_in() || ! is_multisite() ) 289 289 return; 290 290 291 $user_blog_count = count( $wp_admin_bar->user->blogs ); 292 291 293 // Show only when there are more than two items in the menu. 292 if ( count( $wp_admin_bar->user->blogs ) <= 1 && ! is_super_admin() )294 if ( ( $user_blog_count <= 1 && ! is_super_admin() ) || ( $user_blog_count <= 2 && ! is_network_admin() && ! is_user_admin() ) ) 293 295 return; 294 296 295 297 $wp_admin_bar->add_menu( array(