Make WordPress Core

Changeset 35361


Ignore:
Timestamp:
10/22/2015 07:55:30 PM (9 years ago)
Author:
wonderboymusic
Message:

Plugins: after [35151], set default $restrict_network_* values to prevent notices.

Props johnjamesjacoby.
Fixes #20104.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r35241 r35361  
    504504        );
    505505
     506        // Do not restrict by default
     507        $restrict_network_active = false;
     508        $restrict_network_only = false;
     509
    506510        if ( 'mustuse' === $context ) {
    507511            $is_active = true;
     
    526530            if ( $screen->in_admin( 'network' ) ) {
    527531                $is_active = is_plugin_active_for_network( $plugin_file );
    528                 $restrict_network_active = false;
    529                 $restrict_network_only = false;
    530532            } else {
    531533                $is_active = is_plugin_active( $plugin_file );
Note: See TracChangeset for help on using the changeset viewer.