Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update site health checks loader
  • Loading branch information
thelovekesh committed Mar 13, 2024
commit 8604b65b11aeacfa7d87865362a6c9ec8dee66ef
22 changes: 11 additions & 11 deletions includes/site-health/load.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Site Health tests loader.
* Site Health checks loader.
*
* @package performance-lab
* @since n.e.x.t
Expand All @@ -14,14 +14,14 @@
return;
}

// Site health tests to load.
$site_health_tests = array(
'audit-autoloaded-options',
'audit-enqueued-assets',
'webp-support'
);
// Audit Autoloaded Options site health check.
require_once __DIR__ . '/audit-autoloaded-options/helper.php';
require_once __DIR__ . '/audit-autoloaded-options/hooks.php';

foreach ( $site_health_tests as $test ) {
require_once __DIR__ . '/' . $test . '/helper.php';
require_once __DIR__ . '/' . $test . '/hooks.php';
}
// Audit Enqueued Assets site health check.
require_once __DIR__ . '/audit-enqueued-assets/helper.php';
require_once __DIR__ . '/audit-enqueued-assets/hooks.php';

// WebP Support site health check.
require_once __DIR__ . '/webp-support/helper.php';
require_once __DIR__ . '/webp-support/hooks.php';