From d48e549984ddeb2d5ad530e1648c83c16b481af4 Mon Sep 17 00:00:00 2001 From: raicem Date: Thu, 8 Jun 2023 14:11:24 +0300 Subject: [PATCH] Default to false when the "network" flag is omitted --- src/Plugin_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin_Command.php b/src/Plugin_Command.php index a84bffb0..316730f3 100644 --- a/src/Plugin_Command.php +++ b/src/Plugin_Command.php @@ -310,7 +310,7 @@ protected function get_all_items() { * Success: Network activated 1 of 1 plugins. */ public function activate( $args, $assoc_args = array() ) { - $network_wide = Utils\get_flag_value( $assoc_args, 'network' ); + $network_wide = Utils\get_flag_value( $assoc_args, 'network', false ); $all = Utils\get_flag_value( $assoc_args, 'all', false ); $all_exclude = Utils\get_flag_value( $assoc_args, 'exclude' );