Skip to content

Commit de85f5a

Browse files
committed
Always remove site transients from the the site meta table if multisite
1 parent 43aede3 commit de85f5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Transient_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ private function delete_expired() {
257257
time()
258258
)
259259
);
260-
} elseif ( is_multisite() && is_main_site() && is_main_network() ) {
260+
} else {
261261
// Multisite stores site transients in the sitemeta table.
262262
$count += $wpdb->query(
263263
$wpdb->prepare(
@@ -317,7 +317,7 @@ private function delete_all() {
317317
Utils\esc_like( '_site_transient_' ) . '%'
318318
)
319319
);
320-
} elseif ( is_multisite() && is_main_site() && is_main_network() ) {
320+
} else {
321321
// Multisite stores site transients in the sitemeta table.
322322
$count += $wpdb->prepare(
323323
"DELETE FROM $wpdb->sitemeta WHERE option_name LIKE %s",

0 commit comments

Comments
 (0)