Standardise on ->user->domain and ->user->account_domain being trailingslash'd. See #14772
git-svn-id: https://develop.svn.wordpress.org/trunk@15760 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
17b2091b43
commit
f8be3f9fd1
@ -78,7 +78,7 @@ function wp_admin_bar_me_separator() {
|
||||
if ( !is_object( $wp_admin_bar ) )
|
||||
return false;
|
||||
|
||||
$wp_admin_bar->add_menu( array( 'id' => 'me', 'title' => get_avatar( $current_user->ID, 16 ), 'href' => $wp_admin_bar->user->account_domain . '/wp-admin/profile.php' ) );
|
||||
$wp_admin_bar->add_menu( array( 'id' => 'me', 'title' => get_avatar( $current_user->ID, 16 ), 'href' => $wp_admin_bar->user->account_domain . 'wp-admin/profile.php' ) );
|
||||
}
|
||||
add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_me_separator', 10 );
|
||||
|
||||
|
@ -19,8 +19,8 @@ class WP_Admin_Bar {
|
||||
$this->user->account_domain = $this->user->domain;
|
||||
} else {
|
||||
$this->user->active_blog = $this->user->blogs[$blog_id];
|
||||
$this->user->domain = home_url();
|
||||
$this->user->account_domain = home_url();
|
||||
$this->user->domain = trailingslashit( home_url() );
|
||||
$this->user->account_domain = $this->user->domain;
|
||||
}
|
||||
$this->user->locale = get_locale();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user