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:
parent
e745378cab
commit
5382542c1a
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user