Network Admin toolbar menu: Add Plugins and Themes, remove Visit Network.

props Ipstenu, SergeyBiryukov.
fixes #21674.


Built from https://develop.svn.wordpress.org/trunk@25120


git-svn-id: http://core.svn.wordpress.org/trunk@25100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-08-26 15:22:11 +00:00
parent 503f867e1d
commit 4e4e9f6bee

View File

@ -334,9 +334,15 @@ function wp_admin_bar_my_sites_menu( $wp_admin_bar ) {
) );
$wp_admin_bar->add_menu( array(
'parent' => 'network-admin',
'id' => 'network-admin-v',
'title' => __( 'Visit Network' ),
'href' => network_home_url(),
'id' => 'network-admin-t',
'title' => __( 'Themes' ),
'href' => network_admin_url( 'themes.php' ),
) );
$wp_admin_bar->add_menu( array(
'parent' => 'network-admin',
'id' => 'network-admin-p',
'title' => __( 'Plugins' ),
'href' => network_admin_url( 'plugins.php' ),
) );
}