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:
parent
9746d095d5
commit
7f699e5857
|
@ -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_add_dashboard_widget( 'dashboard_incoming_links', __( 'Incoming Links' ), 'wp_dashboard_incoming_links', 'wp_dashboard_incoming_links_control' );
|
||||||
|
|
||||||
// WP Plugins Widget
|
// 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' );
|
wp_add_dashboard_widget( 'dashboard_plugins', __( 'Plugins' ), 'wp_dashboard_plugins' );
|
||||||
|
|
||||||
// QuickPress Widget
|
// QuickPress Widget
|
||||||
|
|
|
@ -665,11 +665,6 @@ function secret_salt_warning() {
|
||||||
}
|
}
|
||||||
add_action( 'admin_notices', '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() {
|
function profile_update_primary_blog() {
|
||||||
global $current_user;
|
global $current_user;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue