Fix non-required argument
This commit is contained in:
+1
-1
@@ -109,7 +109,7 @@ final class CLI {
|
|||||||
* @when after_wp_load
|
* @when after_wp_load
|
||||||
*/
|
*/
|
||||||
public function form(array $args, array $assoc_args):void {
|
public function form(array $args, array $assoc_args):void {
|
||||||
list($locations) = $args;
|
$locations = !empty($args) ? (array) array_values($args)[0] : [];
|
||||||
$all = $assoc_args['all'] ?? false;
|
$all = $assoc_args['all'] ?? false;
|
||||||
$disable = $assoc_args['disable'] ?? false;
|
$disable = $assoc_args['disable'] ?? false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user