Plugins: after [35151], set default `$restrict_network_*` values to prevent notices.
Props johnjamesjacoby. Fixes #20104. Built from https://develop.svn.wordpress.org/trunk@35361 git-svn-id: http://core.svn.wordpress.org/trunk@35327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e31c837d70
commit
2afbf378d9
|
@ -503,6 +503,10 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||
'delete' => '',
|
||||
);
|
||||
|
||||
// Do not restrict by default
|
||||
$restrict_network_active = false;
|
||||
$restrict_network_only = false;
|
||||
|
||||
if ( 'mustuse' === $context ) {
|
||||
$is_active = true;
|
||||
} elseif ( 'dropins' === $context ) {
|
||||
|
@ -525,8 +529,6 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
|||
} else {
|
||||
if ( $screen->in_admin( 'network' ) ) {
|
||||
$is_active = is_plugin_active_for_network( $plugin_file );
|
||||
$restrict_network_active = false;
|
||||
$restrict_network_only = false;
|
||||
} else {
|
||||
$is_active = is_plugin_active( $plugin_file );
|
||||
$restrict_network_active = ( is_multisite() && is_plugin_active_for_network( $plugin_file ) );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35360';
|
||||
$wp_version = '4.4-alpha-35361';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue