Check for install_plugins cap too since it can be removed for supes. see #15163

git-svn-id: https://develop.svn.wordpress.org/trunk@16163 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-11-03 14:57:10 +00:00
parent 1261493fa1
commit 0c6730ed9b
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,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' ) ) )
if ( ( 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