Make WordPress Core

Changeset 18685


Ignore:
Timestamp:
09/16/2011 07:18:05 AM (13 years ago)
Author:
koopersmith
Message:

Show correct blogs in the admin bar sites menu. see #18197.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r18683 r18685  
    194194
    195195    foreach ( (array) $wp_admin_bar->user->blogs as $blog ) {
    196         // Skip the current blog.
    197         if ( $blog->userblog_id == $wp_admin_bar->user->active_blog->blog_id )
     196        // Skip the current blog (unless we're in the network/user admin).
     197        if ( $blog->userblog_id == get_current_blog_id() && ! is_network_admin() && ! is_user_admin() ) {
    198198            continue;
     199        }
    199200
    200201        // @todo Replace with some favicon lookup.
Note: See TracChangeset for help on using the changeset viewer.