mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
503f867e1d
commit
4e4e9f6bee
@ -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