mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-14 15:49:16 +01:00
Check for install_plugins cap too since it can be removed for supes. see #15163
git-svn-id: http://svn.automattic.com/wordpress/trunk@16163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e98d6bd25a
commit
bee047cabb
@ -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