Make WordPress Core

Ticket #24178: 24178.patch

File 24178.patch, 841 bytes (added by mordauk, 11 years ago)

Check if plugin is active before removing it from list table

  • 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 ( is_multisite() && ! $screen->in_admin( 'network' ) && is_network_only_plugin( $plugin_file ) ) {
     86                        if ( is_multisite() && ! $screen->in_admin( 'network' ) && is_network_only_plugin( $plugin_file ) && ! is_plugin_active( $plugin_file ) ) {
    8787                                unset( $plugins['all'][ $plugin_file ] );
    8888                        } elseif ( ! $screen->in_admin( 'network' ) && is_plugin_active_for_network( $plugin_file ) ) {
    8989                                unset( $plugins['all'][ $plugin_file ] );