diff --git a/inc/WPCLI.php b/inc/WPCLI.php index 81da39b..b670c50 100644 --- a/inc/WPCLI.php +++ b/inc/WPCLI.php @@ -156,8 +156,8 @@ public function paths( $args, $assoc_args ) { $types = [ 'active', 'inactive', 'queue' ]; - if ( isset( $assoc_args['type'] ) ) { - $types = array_intersect( explode( ',', $assoc_args['type'] ), $types ); + if ( isset( $args[1] ) ) { + $types = array_intersect( explode( ',', $args[1] ), $types ); } // Loop through types of paths.