|
@@ 1406-1412 (lines=7) @@
|
| 1403 |
|
* @return mixed|WP_Error Number of days since last downtime. Otherwise, a WP_Error instance with the corresponding error. |
| 1404 |
|
*/ |
| 1405 |
|
public function get_monitor_data() { |
| 1406 |
|
if ( ! Jetpack::is_module_active( 'monitor' ) ) { |
| 1407 |
|
return new WP_Error( |
| 1408 |
|
'not_active', |
| 1409 |
|
esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ), |
| 1410 |
|
array( 'status' => 404 ) |
| 1411 |
|
); |
| 1412 |
|
} |
| 1413 |
|
|
| 1414 |
|
$monitor = new Jetpack_Monitor(); |
| 1415 |
|
$last_downtime = $monitor->monitor_get_last_downtime(); |
|
@@ 1439-1445 (lines=7) @@
|
| 1436 |
|
* @return mixed|WP_Error List of services that verified this site. Otherwise, a WP_Error instance with the corresponding error. |
| 1437 |
|
*/ |
| 1438 |
|
public function get_verification_tools_data() { |
| 1439 |
|
if ( ! Jetpack::is_module_active( 'verification-tools' ) ) { |
| 1440 |
|
return new WP_Error( |
| 1441 |
|
'not_active', |
| 1442 |
|
esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ), |
| 1443 |
|
array( 'status' => 404 ) |
| 1444 |
|
); |
| 1445 |
|
} |
| 1446 |
|
|
| 1447 |
|
$verification_services_codes = get_option( 'verification_services_codes' ); |
| 1448 |
|
if ( |