Changeset 16050 for trunk/wp-includes/admin-bar/admin-bar-class.php
- Timestamp:
- 10/28/2010 03:46:11 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/admin-bar/admin-bar-class.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar/admin-bar-class.php
r16045 r16050 8 8 9 9 function initialize() { 10 global $blog_id;11 12 10 /* Only load super admin menu code if the logged in user is a super admin */ 13 11 if ( is_super_admin() ) { … … 29 27 $this->user->account_domain = $this->user->domain; 30 28 } else { 31 $this->user->active_blog = $this->user->blogs[ $blog_id];29 $this->user->active_blog = $this->user->blogs[get_current_blog_id()]; 32 30 $this->user->domain = trailingslashit( home_url() ); 33 31 $this->user->account_domain = $this->user->domain; … … 86 84 return $this->remove_node( $id, $this->menu ); 87 85 } 88 86 89 87 function render() { 90 88 ?>
Note: See TracChangeset
for help on using the changeset viewer.