From 14410c50dab504f2dcc58d22477dee6693485435 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Thu, 1 Sep 2022 17:45:38 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/class-wp-site-health.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/class-wp-site-health.php b/src/wp-admin/includes/class-wp-site-health.php index 1fc0cea878..9e6815f180 100644 --- a/src/wp-admin/includes/class-wp-site-health.php +++ b/src/wp-admin/includes/class-wp-site-health.php @@ -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. *