diff --git a/includes/cli.php b/includes/cli.php index d9f7ee9..deca0b0 100644 --- a/includes/cli.php +++ b/includes/cli.php @@ -414,7 +414,7 @@ private function format_output( $transients, $assoc_args ) { if ( ! empty( $assoc_args['fields'] ) ) { if ( is_string( $assoc_args['fields'] ) ) { - $fields = explode( ',', $assoc_args ); + $fields = explode( ',', $assoc_args['fields'] ); } else { $fields = $assoc_args['fields']; }