Skip to content

Commit

Permalink
Update docblock for amp_page_cache_good_response_time_threshold hook
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Oct 25, 2023
1 parent 340710b commit b18e290
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Admin/SiteHealth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ],
Expand All @@ -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 );
Expand Down

0 comments on commit b18e290

Please sign in to comment.