Skip to content

Commit 1360216

Browse files
committed
fix default value.
1 parent 046aaab commit 1360216

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/cli/cli_setting.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private function update_setting( $new_setting ) {
133133
* : The type of cache to clear. Default is images.
134134
*/
135135
public function clear_cache( $args, $assoc_args ) {
136-
$type = '';
136+
$type = 'images';
137137

138138
// If assoc_args has a type key, use that.
139139
if ( isset( $assoc_args['type'] ) && $assoc_args['type'] === 'assets' ) {
@@ -147,6 +147,6 @@ public function clear_cache( $args, $assoc_args ) {
147147
\WP_CLI::error( $token->get_error_message() );
148148
}
149149

150-
\WP_CLI::success( sprintf( 'Cache type %s cleared', $assoc_args['type'] ) );
150+
\WP_CLI::success( sprintf( 'Cache type %s cleared', $type ) );
151151
}
152152
}

0 commit comments

Comments
 (0)