|
@@ 1314-1316 (lines=3) @@
|
| 1311 |
|
return new WP_Error( 'not_installed', esc_html__( 'Please install Akismet.', 'jetpack' ), array( 'status' => 400 ) ); |
| 1312 |
|
} |
| 1313 |
|
|
| 1314 |
|
if ( ! class_exists( 'Akismet' ) ) { |
| 1315 |
|
return new WP_Error( 'not_active', esc_html__( 'Please activate Akismet.', 'jetpack' ), array( 'status' => 400 ) ); |
| 1316 |
|
} |
| 1317 |
|
|
| 1318 |
|
return true; |
| 1319 |
|
} |
|
@@ 1525-1531 (lines=7) @@
|
| 1522 |
|
* @return mixed|WP_Error VaultPress site data. Otherwise, a WP_Error instance with the corresponding error. |
| 1523 |
|
*/ |
| 1524 |
|
public function get_vaultpress_data() { |
| 1525 |
|
if ( ! class_exists( 'VaultPress' ) ) { |
| 1526 |
|
return new WP_Error( |
| 1527 |
|
'not_active', |
| 1528 |
|
esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ), |
| 1529 |
|
array( 'status' => 404 ) |
| 1530 |
|
); |
| 1531 |
|
} |
| 1532 |
|
|
| 1533 |
|
$vaultpress = new VaultPress(); |
| 1534 |
|
if ( ! $vaultpress->is_registered() ) { |