@@ 1354-1356 (lines=3) @@ | ||
1351 | return new WP_Error( 'not_installed', esc_html__( 'Please install Akismet.', 'jetpack' ), array( 'status' => 400 ) ); |
|
1352 | } |
|
1353 | ||
1354 | if ( ! class_exists( 'Akismet' ) ) { |
|
1355 | return new WP_Error( 'not_active', esc_html__( 'Please activate Akismet.', 'jetpack' ), array( 'status' => 400 ) ); |
|
1356 | } |
|
1357 | ||
1358 | return true; |
|
1359 | } |
|
@@ 1565-1571 (lines=7) @@ | ||
1562 | * @return mixed|WP_Error VaultPress site data. Otherwise, a WP_Error instance with the corresponding error. |
|
1563 | */ |
|
1564 | public function get_vaultpress_data() { |
|
1565 | if ( ! class_exists( 'VaultPress' ) ) { |
|
1566 | return new WP_Error( |
|
1567 | 'not_active', |
|
1568 | esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ), |
|
1569 | array( 'status' => 404 ) |
|
1570 | ); |
|
1571 | } |
|
1572 | ||
1573 | $vaultpress = new VaultPress(); |
|
1574 | if ( ! $vaultpress->is_registered() ) { |