PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/integrations/admin/health-check-integration.php +4 -1 18.8 → trunk View file →
@@ -21,9 +21,8 @@
21 21 /**
22 22 * Uses the dependency injection container to obtain all available implementations of the Health_Check interface.
23 23 *
24 24 * @param Health_Check ...$health_checks The available health checks implementations.
25 - * @return void
26 25 */
27 26 public function __construct( Health_Check ...$health_checks ) {
28 27 $this->health_checks = $health_checks;
29 28 }
@@ -91,8 +90,12 @@
91 90 * @return string[] Array containing WordPress site status tests with Yoast's health checks.
92 91 */
93 92 private function add_health_checks_to_site_status_tests( $tests ) {
94 93 foreach ( $this->health_checks as $health_check ) {
94 + if ( $health_check->is_excluded() ) {
95 + continue;
96 + }
97 +
95 98 $tests['direct'][ $health_check->get_test_identifier() ] = [
96 99 'test' => [ $health_check, 'run_and_get_result' ],
97 100 ];
98 101 }