From 4dabd01ce6d9d928976b890b11260be0107299e3 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 19 Jan 2010 18:15:53 +0000 Subject: [PATCH] Remove mu_dashboard(). Rely on cap checks to customize dash for multisite. git-svn-id: https://develop.svn.wordpress.org/trunk@12765 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/dashboard.php | 2 +- wp-admin/includes/ms.php | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index a1d67b863a..b05172c21a 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -46,7 +46,7 @@ function wp_dashboard_setup() { wp_add_dashboard_widget( 'dashboard_incoming_links', __( 'Incoming Links' ), 'wp_dashboard_incoming_links', 'wp_dashboard_incoming_links_control' ); // WP Plugins Widget - if ( current_user_can( 'activate_plugins' ) ) + if ( current_user_can( 'install_plugins' ) ) wp_add_dashboard_widget( 'dashboard_plugins', __( 'Plugins' ), 'wp_dashboard_plugins' ); // QuickPress Widget diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index e700eec967..bb8b856f08 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -665,11 +665,6 @@ function secret_salt_warning() { } add_action( 'admin_notices', 'secret_salt_warning' ); -function mu_dashboard() { - unregister_sidebar_widget( 'dashboard_plugins' ); -} -add_action( 'wp_dashboard_setup', 'mu_dashboard' ); - function profile_update_primary_blog() { global $current_user;