Skip to content

Commit 07a7689

Browse files
authored
update comment
1 parent f90beae commit 07a7689

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

includes/class-plugin.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,15 +1207,18 @@ public function register_shutdown_hooks() {
12071207
}
12081208

12091209
/**
1210-
* Registers all hooks associated with the shutdown hook
1210+
* Delete all transients if the cache was enabled successfully.
1211+
* Callback for `redis_object_cache_enable` action.
12111212
*
12121213
* @param bool $result
12131214
* @return void
12141215
*/
12151216
public function maybe_delete_transients( $result ) {
12161217
global $wpdb;
12171218

1218-
if ( ! $result ) { return; }
1219+
if ( ! $result ) {
1220+
return;
1221+
}
12191222

12201223
$wpdb->query( $wpdb->prepare(
12211224
"DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s",

0 commit comments

Comments
 (0)