Skip to content

Commit 7eb716c

Browse files
committed
Fixes disable command
1 parent 837748c commit 7eb716c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WP_Super_Cache_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function disable( $args = array(), $assoc_args = array() ) {
148148
wp_cache_disable();
149149
wp_super_cache_disable();
150150

151-
if ( ! $super_cache_enabled ) {
151+
if ( ! $cache_enabled ) {
152152
WP_CLI::success( 'The WP Super Cache is disabled.' );
153153
} else {
154154
WP_CLI::error( 'The WP Super Cache is still enabled, check its settings page for more info.' );

0 commit comments

Comments
 (0)