From 47ca0903b1bb6fd8a034ac70d006142ee3546383 Mon Sep 17 00:00:00 2001 From: Cooper Dalrymple Date: Tue, 9 Jun 2026 17:34:31 -0500 Subject: [PATCH] Fix cli args --- inc/class-cli.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/class-cli.php b/inc/class-cli.php index cbeef9d..ee6f299 100644 --- a/inc/class-cli.php +++ b/inc/class-cli.php @@ -110,7 +110,8 @@ final class CLI { */ public function form(array $args, array $assoc_args):void { list($locations) = $args; - extract($assoc_args); + $all = $assoc_args['all'] ?? false; + $disable = $assoc_args['disable'] ?? false; if (empty($locations) && !$all) { WP_CLI::error('Please specify one or more form locations, or use --all.');