We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 046aaab commit 1360216Copy full SHA for 1360216
inc/cli/cli_setting.php
@@ -133,7 +133,7 @@ private function update_setting( $new_setting ) {
133
* : The type of cache to clear. Default is images.
134
*/
135
public function clear_cache( $args, $assoc_args ) {
136
- $type = '';
+ $type = 'images';
137
138
// If assoc_args has a type key, use that.
139
if ( isset( $assoc_args['type'] ) && $assoc_args['type'] === 'assets' ) {
@@ -147,6 +147,6 @@ public function clear_cache( $args, $assoc_args ) {
147
\WP_CLI::error( $token->get_error_message() );
148
}
149
150
- \WP_CLI::success( sprintf( 'Cache type %s cleared', $assoc_args['type'] ) );
+ \WP_CLI::success( sprintf( 'Cache type %s cleared', $type ) );
151
152
0 commit comments