Make WordPress Core

Changeset 54054


Ignore:
Timestamp:
09/01/2022 05:45:38 PM (4 years ago)
Author:
flixos90
Message:

Site Health: Ensure persistent object cache check short-circuit filter also short-circuits multisite.

Follow up to [54053].

See #56040.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r54047 r54054  
    32913291                global $wpdb;
    32923292
    3293                 if ( is_multisite() ) {
    3294                         return true;
    3295                 }
    3296 
    32973293                /**
    32983294                 * Filters whether to suggest use of a persistent object cache and bypass default threshold checks.
    … …  
    33083304                if ( is_bool( $short_circuit ) ) {
    33093305                        return $short_circuit;
     3306                }
     3307
     3308                if ( is_multisite() ) {
     3309                        return true;
    33103310                }
    33113311
Note: See TracChangeset for help on using the changeset viewer.