WordPress.org

Make WordPress Core

Changeset 16841


Ignore:
Timestamp:
12/09/10 16:37:16 (5 years ago)
Author:
ryan
Message:

Don't show the WP plugins widget in multisite in the site admin. Props ocean90. fixes #15748

File:
1 edited

Legend:

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

    r16814 r16841  
    6262 
    6363    // WP Plugins Widget 
    64     if ( ( is_blog_admin() && current_user_can( 'install_plugins' ) ) || ( is_network_admin() && current_user_can( 'manage_network_plugins' ) && current_user_can( 'install_plugins' ) ) ) 
     64    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' ) ) ) 
    6565        wp_add_dashboard_widget( 'dashboard_plugins', __( 'Plugins' ), 'wp_dashboard_plugins' ); 
    6666 
Note: See TracChangeset for help on using the changeset viewer.