Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Conflicts Guardian — pre-flight plugin-activation check. |
| 4 | * |
| 5 | * See README.md for how it works. |
| 6 | * |
| 7 | * @package automattic/jetpack-mu-wpcom |
| 8 | */ |
| 9 | |
| 10 | /** |
| 11 | * Load dependencies. |
| 12 | */ |
| 13 | require_once __DIR__ . '/pcg-log.php'; |
| 14 | require_once __DIR__ . '/class-pcg-load-tester.php'; |
| 15 | |
| 16 | // Probe endpoint must answer front-end requests, so it's not gated on is_admin(). |
| 17 | require_once __DIR__ . '/probe-endpoint.php'; |
| 18 | |
| 19 | /* |
| 20 | * Loaded unconditionally: |
| 21 | * - activation-guard.php's hooks (`load-plugins.php` / `load-update.php`) |
| 22 | * only fire on admin requests, but the file also defines the |
| 23 | * `pcg_guard_format_block_reason` helper used by update-healthcheck |
| 24 | * under cron auto-updates and WP-CLI. |
| 25 | * - The upgrade-time files (update-guard, snapshot, rollback, |
| 26 | * update-healthcheck) hook `upgrader_*` actions that fire for cron |
| 27 | * auto-updates and WP-CLI flows too, not just admin requests. |
| 28 | */ |
| 29 | require_once __DIR__ . '/activation-guard.php'; |
| 30 | require_once __DIR__ . '/update-guard.php'; |
| 31 | require_once __DIR__ . '/class-pcg-snapshot.php'; |
| 32 | require_once __DIR__ . '/class-pcg-rollback.php'; |
| 33 | require_once __DIR__ . '/update-healthcheck.php'; |