Skip to content

Commit

Permalink
Fix hook callback
Browse files Browse the repository at this point in the history
Co-authored-by: Weston Ruter <westonruter@google.com>
  • Loading branch information
thelovekesh and westonruter authored Oct 25, 2023
1 parent b18e290 commit 57d4c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/SiteHealth.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function register() {
add_filter( 'site_status_test_php_modules', [ $this, 'add_extensions' ] );

if ( version_compare( get_bloginfo( 'version' ), '6.1', '>=' ) && has_filter( 'amp_page_cache_good_response_time_threshold' ) ) {
add_filter( 'site_status_good_response_time_threshold', 'get_good_response_time_threshold' );
add_filter( 'site_status_good_response_time_threshold', [ $this, 'get_good_response_time_threshold' ] );

Check warning on line 106 in src/Admin/SiteHealth.php

View check run for this annotation

Codecov / codecov/patch

src/Admin/SiteHealth.php#L106

Added line #L106 was not covered by tests
}

add_action( 'admin_print_styles-tools_page_health-check', [ $this, 'add_styles' ] );
Expand Down

0 comments on commit 57d4c0b

Please sign in to comment.