Skip to content

Commit 35ca22a

Browse files
Coding Standards: Remove redundant check in delete_expired_transients().
The check in the `elseif` branch would always be true, as the preceding `if` is for `! is_multisite()`. Follow-up to [41963]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60448 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b38123c commit 35ca22a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/option.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1669,7 +1669,7 @@ function delete_expired_transients( $force_db = false ) {
16691669
time()
16701670
)
16711671
);
1672-
} elseif ( is_multisite() && is_main_site() && is_main_network() ) {
1672+
} elseif ( is_main_site() && is_main_network() ) {
16731673
// Multisite stores site transients in the sitemeta table.
16741674
$wpdb->query(
16751675
$wpdb->prepare(

0 commit comments

Comments
 (0)