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:
parent
1261493fa1
commit
0c6730ed9b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user