Add some more network admin logic to the plugins list table. fixes #15166.

git-svn-id: https://develop.svn.wordpress.org/trunk@15870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-10-20 16:09:55 +00:00
parent e745378cab
commit 5382542c1a
1 changed files with 2 additions and 1 deletions

View File

@ -3306,7 +3306,8 @@ class WP_Plugins_Table extends WP_List_Table {
continue;
} elseif ( is_multisite() && is_network_only_plugin( $plugin_file ) && !current_user_can( 'manage_network_plugins' ) ) {
$plugins['network'][ $plugin_file ] = $plugin_data;
} elseif ( is_plugin_active( $plugin_file ) ) {
} elseif ( ( !is_network_admin() && is_plugin_active( $plugin_file ) )
|| ( is_network_admin() && is_plugin_active_for_network( $plugin_file ) ) ) {
$plugins['active'][ $plugin_file ] = $plugin_data;
} else {
if ( !is_network_admin() && isset( $recently_activated[ $plugin_file ] ) ) // Was the plugin recently activated?