@@ 1403-1405 (lines=3) @@ | ||
1400 | return new WP_Error( 'not_installed', esc_html__( 'Please install Akismet.', 'jetpack' ), array( 'status' => 400 ) ); |
|
1401 | } |
|
1402 | ||
1403 | if ( ! class_exists( 'Akismet' ) ) { |
|
1404 | return new WP_Error( 'not_active', esc_html__( 'Please activate Akismet.', 'jetpack' ), array( 'status' => 400 ) ); |
|
1405 | } |
|
1406 | ||
1407 | return true; |
|
1408 | } |
|
@@ 1614-1620 (lines=7) @@ | ||
1611 | * @return mixed|WP_Error VaultPress site data. Otherwise, a WP_Error instance with the corresponding error. |
|
1612 | */ |
|
1613 | public function get_vaultpress_data() { |
|
1614 | if ( ! class_exists( 'VaultPress' ) ) { |
|
1615 | return new WP_Error( |
|
1616 | 'not_active', |
|
1617 | esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ), |
|
1618 | array( 'status' => 404 ) |
|
1619 | ); |
|
1620 | } |
|
1621 | ||
1622 | $vaultpress = new VaultPress(); |
|
1623 | if ( ! $vaultpress->is_registered() ) { |