Only show it as the Global Dashboard if multisite. See #14772
git-svn-id: http://svn.automattic.com/wordpress/trunk@16080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4f3bdf2226
commit
547632b70d
|
@ -87,7 +87,10 @@ function wp_admin_bar_my_account_menu() {
|
|||
|
||||
/* Add the "My Account" sub menus */
|
||||
$wp_admin_bar->add_menu( array( 'parent' => 'my-account', 'title' => __( 'Edit My Profile' ), 'href' => admin_url('profile.php'), ) );
|
||||
$wp_admin_bar->add_menu( array( 'parent' => 'my-account', 'title' => __( 'Global Dashboard' ), 'href' => admin_url(), ) );
|
||||
if ( is_multisite() )
|
||||
$wp_admin_bar->add_menu( array( 'parent' => 'my-account', 'title' => __( 'Global Dashboard' ), 'href' => admin_url(), ) );
|
||||
else
|
||||
$wp_admin_bar->add_menu( array( 'parent' => 'my-account', 'title' => __( 'Dashboard' ), 'href' => admin_url(), ) );
|
||||
$wp_admin_bar->add_menu( array( 'parent' => 'my-account', 'title' => __( 'Log Out' ), 'href' => wp_logout_url(), ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue