| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 | 2 | /** |
| 3 | - * Module Name: Monitor | |
| 4 | - * Module Description: Jetpack’s downtime monitoring will continuously watch your site and alert you the moment that downtime is detected. | |
| 3 | + * Module Name: Downtime Monitor | |
| 4 | + * Module Description: Get instant alerts if your site goes down and know when it’s back online. | |
| 5 | 5 | * Sort Order: 28 |
| 6 | 6 | * Recommendation Order: 10 |
| 7 | 7 | * First Introduced: 2.6 |
| 8 | 8 | * Requires Connection: Yes |
| @@ -16,10 +16,16 @@ | ||
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | 18 | use Automattic\Jetpack\Connection\Manager as Connection_Manager; |
| 19 | 19 | |
| 20 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 21 | + exit( 0 ); | |
| 22 | +} | |
| 23 | + | |
| 20 | 24 | /** |
| 21 | 25 | * Class Jetpack_Monitor |
| 26 | + * | |
| 27 | + * @phan-constructor-used-for-side-effects | |
| 22 | 28 | */ |
| 23 | 29 | class Jetpack_Monitor { |
| 24 | 30 | |
| 25 | 31 | /** |
| @@ -131,4 +137,7 @@ | ||
| 131 | 137 | } |
| 132 | 138 | } |
| 133 | 139 | |
| 134 | 140 | new Jetpack_Monitor(); |
| 141 | + | |
| 142 | +// Register Jetpack Monitor abilities (WordPress Abilities API, WP 6.9+). | |
| 143 | +\Automattic\Jetpack\Plugin\Abilities\Monitor_Abilities::init(); | |