diff --git a/src/wp-admin/includes/class-wp-site-health.php b/src/wp-admin/includes/class-wp-site-health.php
index 70f5b7c6ad..4c6b91f904 100644
a
|
b
|
class WP_Site_Health { |
3099 | 3099 | public function get_page_cache_headers() { |
3100 | 3100 | |
3101 | 3101 | $cache_hit_callback = static function ( $header_value ) { |
3102 | | return false !== strpos( strtolower( $header_value ), 'hit' ); |
| 3102 | return str_contains( strtolower( $header_value ), 'hit' ); |
3103 | 3103 | }; |
3104 | 3104 | |
3105 | 3105 | $cache_headers = array( |
… |
… |
class WP_Site_Health { |
3129 | 3129 | * |
3130 | 3130 | * @since 6.1.0 |
3131 | 3131 | * |
3132 | | * @param int $cache_headers Array of supported cache headers. |
| 3132 | * @param array $cache_headers Array of supported cache headers. |
3133 | 3133 | */ |
3134 | 3134 | return apply_filters( 'site_status_page_cache_supported_cache_headers', $cache_headers ); |
3135 | 3135 | } |