WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2010 03:46:11 PM (9 years ago)
Author:
ryan
Message:

get_current_blog_id(). Props aaroncampbell. fixes #15233

File:
1 edited

Legend:

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

    r16045 r16050  
    88
    99    function initialize() {
    10         global $blog_id;
    11 
    1210        /* Only load super admin menu code if the logged in user is a super admin */
    1311        if ( is_super_admin() ) {
     
    2927            $this->user->account_domain = $this->user->domain;
    3028        } else {
    31             $this->user->active_blog = $this->user->blogs[$blog_id];
     29            $this->user->active_blog = $this->user->blogs[get_current_blog_id()];
    3230            $this->user->domain = trailingslashit( home_url() );
    3331            $this->user->account_domain = $this->user->domain;
     
    8684        return $this->remove_node( $id, $this->menu );
    8785    }
    88    
     86
    8987    function render() {
    9088        ?>
Note: See TracChangeset for help on using the changeset viewer.