Changeset 15746 for trunk/wp-includes/admin-bar/admin-bar-class.php
- Timestamp:
- 10/07/2010 07:34:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar/admin-bar-class.php
r15671 r15746 16 16 if ( is_multisite() ) { 17 17 $this->user->active_blog = get_active_blog_for_user( $current_user->id ); 18 $this->user->domain = ( $this->user->active_blog == 'username only' ) ? get_dashboard_blog() : trailingslashit( get_home_url( $this->user->active_blog->blog_id ) );18 $this->user->domain = empty( $this->user->active_blog ) ? user_admin_url() : trailingslashit( get_home_url( $this->user->active_blog->blog_id ) ); 19 19 $this->user->account_domain = $this->user->domain; 20 20 } else {
Note: See TracChangeset
for help on using the changeset viewer.