Remove mu_dashboard(). Rely on cap checks to customize dash for multisite.
git-svn-id: https://develop.svn.wordpress.org/trunk@12765 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
411594ffd8
commit
4dabd01ce6
@ -46,7 +46,7 @@ function wp_dashboard_setup() {
|
||||
wp_add_dashboard_widget( 'dashboard_incoming_links', __( 'Incoming Links' ), 'wp_dashboard_incoming_links', 'wp_dashboard_incoming_links_control' );
|
||||
|
||||
// WP Plugins Widget
|
||||
if ( current_user_can( 'activate_plugins' ) )
|
||||
if ( current_user_can( 'install_plugins' ) )
|
||||
wp_add_dashboard_widget( 'dashboard_plugins', __( 'Plugins' ), 'wp_dashboard_plugins' );
|
||||
|
||||
// QuickPress Widget
|
||||
|
@ -665,11 +665,6 @@ function secret_salt_warning() {
|
||||
}
|
||||
add_action( 'admin_notices', 'secret_salt_warning' );
|
||||
|
||||
function mu_dashboard() {
|
||||
unregister_sidebar_widget( 'dashboard_plugins' );
|
||||
}
|
||||
add_action( 'wp_dashboard_setup', 'mu_dashboard' );
|
||||
|
||||
function profile_update_primary_blog() {
|
||||
global $current_user;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user