@@ 1365-1367 (lines=3) @@ | ||
1362 | return new WP_Error( 'not_installed', esc_html__( 'Please install Akismet.', 'jetpack' ), array( 'status' => 400 ) ); |
|
1363 | } |
|
1364 | ||
1365 | if ( ! class_exists( 'Akismet' ) ) { |
|
1366 | return new WP_Error( 'not_active', esc_html__( 'Please activate Akismet.', 'jetpack' ), array( 'status' => 400 ) ); |
|
1367 | } |
|
1368 | ||
1369 | return true; |
|
1370 | } |
|
@@ 1576-1582 (lines=7) @@ | ||
1573 | * @return mixed|WP_Error VaultPress site data. Otherwise, a WP_Error instance with the corresponding error. |
|
1574 | */ |
|
1575 | public function get_vaultpress_data() { |
|
1576 | if ( ! class_exists( 'VaultPress' ) ) { |
|
1577 | return new WP_Error( |
|
1578 | 'not_active', |
|
1579 | esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ), |
|
1580 | array( 'status' => 404 ) |
|
1581 | ); |
|
1582 | } |
|
1583 | ||
1584 | $vaultpress = new VaultPress(); |
|
1585 | if ( ! $vaultpress->is_registered() ) { |