| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 | 2 | /** |
| 3 | - * Module Name: Downtime Monitor | |
| 4 | - * Module Description: Get instant alerts if your site goes down and know when it’s back online. | |
| 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. | |
| 5 | 5 | * Sort Order: 28 |
| 6 | 6 | * Recommendation Order: 10 |
| 7 | 7 | * First Introduced: 2.6 |
| 8 | 8 | * Requires Connection: Yes |
| @@ -16,16 +16,10 @@ | ||
| 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 | - | |
| 24 | 20 | /** |
| 25 | 21 | * Class Jetpack_Monitor |
| 26 | - * | |
| 27 | - * @phan-constructor-used-for-side-effects | |
| 28 | 22 | */ |
| 29 | 23 | class Jetpack_Monitor { |
| 30 | 24 | |
| 31 | 25 | /** |
| @@ -134,10 +128,8 @@ | ||
| 134 | 128 | set_transient( 'monitor_last_downtime', $xml->getResponse(), 10 * MINUTE_IN_SECONDS ); |
| 135 | 129 | |
| 136 | 130 | return $xml->getResponse(); |
| 137 | 131 | } |
| 132 | + | |
| 138 | 133 | } |
| 139 | 134 | |
| 140 | 135 | new Jetpack_Monitor(); |
| 141 | - | |
| 142 | -// Register Jetpack Monitor abilities (WordPress Abilities API, WP 6.9+). | |
| 143 | -\Automattic\Jetpack\Plugin\Abilities\Monitor_Abilities::init(); | |