Network Admin toolbar menu: Add Plugins and Themes, remove Visit Network.
props Ipstenu, SergeyBiryukov. fixes #21674. git-svn-id: https://develop.svn.wordpress.org/trunk@25120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
65d047cde2
commit
512c12ba55
@ -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' ),
|
||||
) );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user