Make WordPress Core

Ticket #21187: 21187.2.diff

File 21187.2.diff, 981 bytes (added by SergeyBiryukov, 11 years ago)
  • wp-admin/includes/class-wp-plugins-list-table.php

     
    8383
    8484                foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) {
    8585                        // Filter into individual sections
    86                         if ( ! $screen->is_network && is_plugin_active_for_network( $plugin_file ) ) {
     86                        if ( is_multisite() && ! $screen->is_network && is_network_only_plugin( $plugin_file ) ) {
    8787                                unset( $plugins['all'][ $plugin_file ] );
     88                        } elseif ( ! $screen->is_network && is_plugin_active_for_network( $plugin_file ) ) {
     89                                unset( $plugins['all'][ $plugin_file ] );
    8890                        } elseif ( ( ! $screen->is_network && is_plugin_active( $plugin_file ) )
    8991                                || ( $screen->is_network && is_plugin_active_for_network( $plugin_file ) ) ) {
    9092                                $plugins['active'][ $plugin_file ] = $plugin_data;