From c120fd98ee7b428a460cc0fd4ee060c45a2407b5 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 9 Dec 2010 16:37:16 +0000 Subject: [PATCH] Don't show the WP plugins widget in multisite in the site admin. Props ocean90. fixes #15748 git-svn-id: https://develop.svn.wordpress.org/trunk@16841 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index a6573799b6..c07fd19d3f 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -61,7 +61,7 @@ function wp_dashboard_setup() { } // WP Plugins Widget - if ( ( is_blog_admin() && current_user_can( 'install_plugins' ) ) || ( is_network_admin() && current_user_can( 'manage_network_plugins' ) && current_user_can( 'install_plugins' ) ) ) + if ( ( ! is_multisite() && is_blog_admin() && current_user_can( 'install_plugins' ) ) || ( is_network_admin() && current_user_can( 'manage_network_plugins' ) && current_user_can( 'install_plugins' ) ) ) wp_add_dashboard_widget( 'dashboard_plugins', __( 'Plugins' ), 'wp_dashboard_plugins' ); // QuickPress Widget