From b18e29024f1d5d78ef6bc1a141f9eef5b8bff309 Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Wed, 25 Oct 2023 21:53:51 +0530 Subject: [PATCH] Update docblock for `amp_page_cache_good_response_time_threshold` hook --- src/Admin/SiteHealth.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Admin/SiteHealth.php b/src/Admin/SiteHealth.php index 3eb9dd5e28a..157d62226be 100644 --- a/src/Admin/SiteHealth.php +++ b/src/Admin/SiteHealth.php @@ -355,7 +355,7 @@ static function ( $available_service ) { */ public function get_good_response_time_threshold( $threshold = 600 ) { if ( version_compare( get_bloginfo( 'version' ), '6.1', '>=' ) ) { - /** @deprecated 2.4.3 Use `site_status_good_response_time_threshold` instead. */ + /** This filter is documented in src/Admin/SiteHealth.php */ return (int) apply_filters_deprecated( 'amp_page_cache_good_response_time_threshold', [ $threshold ], @@ -367,6 +367,9 @@ public function get_good_response_time_threshold( $threshold = 600 ) { * Filters the threshold below which a response time is considered good. * * @since 2.2.1 + * + * @deprecated 2.4.3 Use `site_status_good_response_time_threshold` instead. + * * @param int $threshold Threshold in milliseconds. */ return (int) apply_filters( 'amp_page_cache_good_response_time_threshold', 600 );