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

Follow up to [54053].

See #56040.


git-svn-id: https://develop.svn.wordpress.org/trunk@54054 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Felix Arntz 2022-09-01 17:45:38 +00:00
parent 033d43e7d9
commit 14410c50da

View File

@ -3290,10 +3290,6 @@ class WP_Site_Health {
public function should_suggest_persistent_object_cache() {
global $wpdb;
if ( is_multisite() ) {
return true;
}
/**
* Filters whether to suggest use of a persistent object cache and bypass default threshold checks.
*
@ -3309,6 +3305,10 @@ class WP_Site_Health {
return $short_circuit;
}
if ( is_multisite() ) {
return true;
}
/**
* Filters the thresholds used to determine whether to suggest the use of a persistent object cache.
*