Make WordPress Core

Changeset 12765


Ignore:
Timestamp:
01/19/2010 06:15:53 PM (16 years ago)
Author:
ryan
Message:

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

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r12733 r12765  
    4747
    4848    // WP Plugins Widget
    49     if ( current_user_can( 'activate_plugins' ) )
     49    if ( current_user_can( 'install_plugins' ) )
    5050        wp_add_dashboard_widget( 'dashboard_plugins', __( 'Plugins' ), 'wp_dashboard_plugins' );
    5151
  • trunk/wp-admin/includes/ms.php

    r12764 r12765  
    665665}
    666666add_action( 'admin_notices', 'secret_salt_warning' );
    667 
    668 function mu_dashboard() {
    669     unregister_sidebar_widget( 'dashboard_plugins' );
    670 }
    671 add_action( 'wp_dashboard_setup', 'mu_dashboard' );
    672667
    673668function profile_update_primary_blog() {
Note: See TracChangeset for help on using the changeset viewer.