Remove mu_dashboard(). Rely on cap checks to customize dash for multisite.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-01-19 18:15:53 +00:00
parent 9746d095d5
commit 7f699e5857
2 changed files with 1 additions and 6 deletions

View File

@ -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

View File

@ -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;