Don't show the WP plugins widget in multisite in the site admin. Props ocean90. fixes #15748
git-svn-id: http://svn.automattic.com/wordpress/trunk@16841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b3c96b9bcd
commit
3df76a04e3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue