From 58eee18833de0b1d00ef998c2665448346b69dc6 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 1 Nov 2011 20:19:33 +0000 Subject: [PATCH] Network admin snack menu. see #18197 git-svn-id: http://svn.automattic.com/wordpress/trunk@19104 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/admin-bar.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index 3530732f73..82489bfdbc 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -305,6 +305,31 @@ function wp_admin_bar_my_sites_menu( $wp_admin_bar ) { 'title' => __('Network Admin'), 'href' => network_admin_url(), ) ); + + $wp_admin_bar->add_menu( array( + 'parent' => 'network-admin', + 'id' => 'network-admin-d', + 'title' => __( 'Dashboard' ), + 'href' => network_admin_url(), + ) ); + $wp_admin_bar->add_menu( array( + 'parent' => 'network-admin', + 'id' => 'network-admin-s', + 'title' => __( 'Sites' ), + 'href' => network_admin_url( 'sites.php' ), + ) ); + $wp_admin_bar->add_menu( array( + 'parent' => 'network-admin', + 'id' => 'network-admin-u', + 'title' => __( 'Users' ), + 'href' => network_admin_url( 'users.php' ), + ) ); + $wp_admin_bar->add_menu( array( + 'parent' => 'network-admin', + 'id' => 'network-admin-v', + 'title' => __( 'Visit Network' ), + 'href' => network_home_url(), + ) ); } if ( $wp_admin_bar->user->blogs ) {