Make WordPress Core


Ignore:
Timestamp:
07/12/2025 12:43:16 AM (6 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/option.php

    r60361 r60448  
    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(
Note: See TracChangeset for help on using the changeset viewer.