From b3c96b9bcd3fb8ad4a94f1d4249d2f5e7723fff0 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 9 Dec 2010 16:29:08 +0000 Subject: [PATCH] Remove the snack bar from core. Will become a plugin. Lay down the red. git-svn-id: http://svn.automattic.com/wordpress/trunk@16840 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-admin-bar.php | 49 ------------------------------------ 1 file changed, 49 deletions(-) delete mode 100644 wp-includes/ms-admin-bar.php diff --git a/wp-includes/ms-admin-bar.php b/wp-includes/ms-admin-bar.php deleted file mode 100644 index b2ae051180..0000000000 --- a/wp-includes/ms-admin-bar.php +++ /dev/null @@ -1,49 +0,0 @@ -add_menu( array( 'id' => 'superadmin', 'title' => 'μ', 'href' => '', 'meta' => array( 'class' => 'ab-sadmin' ), ) ); - - /* Get the settings we need for the current site */ - $matureaction = $current_blog->mature ? 'unmatureblog' : 'matureblog'; - $maturetext_confirm = $current_blog->mature ? - sprintf( - esc_attr__( 'Are you sure you want to unmark %s as mature?' ), - $current_blog->domain - ) : - sprintf( - esc_attr__( 'Are you sure you want to mark %s as mature?' ), - $current_blog->domain - ); - - $suspendaction = $current_blog->spam ? 'unspamblog' : 'spamblog'; - $suspendtext_confirm = $current_blog->spam ? - sprintf( - esc_attr__( 'Are you sure you want to unsuspend site %s?' ), - $current_blog->domain - ) : - sprintf( - esc_attr__( 'Are you sure you want to suspend site %s?' ), - $current_blog->domain - ); - - $mature_url = wp_nonce_url( network_admin_url( "edit.php?action=confirm&action2={$matureaction}&id={$current_blog->blog_id}&msg=" . urlencode( $maturetext_confirm ) ), 'confirm' ); - $suspend_url = wp_nonce_url( network_admin_url( "edit.php?action=confirm&action2={$suspendaction}&id={$current_blog->blog_id}&msg=" . urlencode( $suspendtext_confirm ) ), 'confirm' ); - - /* Add the submenu items to the Super Admin menu */ - $wp_admin_bar->add_menu( array( 'parent' => 'superadmin', 'title' => __( 'Network Admin' ), 'href' => network_admin_url(), 'position' => 5, ) ); - $wp_admin_bar->add_menu( array( 'parent' => 'superadmin', 'title' => __( 'Site Admin' ), 'href' => admin_url(), 'position' => 10, ) ); - $wp_admin_bar->add_menu( array( 'parent' => 'superadmin', 'title' => __( 'Site Options' ), 'href' => network_admin_url( "site-info.php?id={$current_blog->blog_id}" ), 'position' => 30, ) ); - $wp_admin_bar->add_menu( array( 'parent' => 'superadmin', 'title' => ( $current_blog->mature ? __('Unmark as mature') : __('Mark as mature') ), 'href' => $mature_url, 'position' => 50, ) ); - - if ( ! is_main_site( $current_blog->blog_id ) ) - $wp_admin_bar->add_menu( array( 'parent' => 'superadmin', 'title' => ( $current_blog->spam ? __('Unsuspend site') : __('Suspend site') ), 'href' => $suspend_url, 'position' => 80, ) ); -} - -?>