From 524a4955f0601471820732e32971388e0407e801 Mon Sep 17 00:00:00 2001 From: Matt Harrison Date: Tue, 21 May 2019 16:48:01 -0400 Subject: [PATCH] update paths list to match example docs. --- inc/WPCLI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.