@@ 866-868 (lines=3) @@ | ||
863 | return new WP_Error( 'not_installed', esc_html__( 'Please install Akismet.', 'jetpack' ), array( 'status' => 400 ) ); |
|
864 | } |
|
865 | ||
866 | if ( ! class_exists( 'Akismet' ) ) { |
|
867 | return new WP_Error( 'not_active', esc_html__( 'Please activate Akismet.', 'jetpack' ), array( 'status' => 400 ) ); |
|
868 | } |
|
869 | ||
870 | // What about if Akismet is put in a sub-directory or maybe in mu-plugins? |
|
871 | require_once WP_PLUGIN_DIR . '/akismet/class.akismet.php'; |
|
@@ 1059-1065 (lines=7) @@ | ||
1056 | * @return mixed|WP_Error VaultPress site data. Otherwise, a WP_Error instance with the corresponding error. |
|
1057 | */ |
|
1058 | public function get_vaultpress_data() { |
|
1059 | if ( ! class_exists( 'VaultPress' ) ) { |
|
1060 | return new WP_Error( |
|
1061 | 'not_active', |
|
1062 | esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ), |
|
1063 | array( 'status' => 404 ) |
|
1064 | ); |
|
1065 | } |
|
1066 | ||
1067 | $vaultpress = new VaultPress(); |
|
1068 | if ( ! $vaultpress->is_registered() ) { |