@@ 882-884 (lines=3) @@ | ||
879 | return new WP_Error( 'not_installed', esc_html__( 'Please install Akismet.', 'jetpack' ), array( 'status' => 400 ) ); |
|
880 | } |
|
881 | ||
882 | if ( ! class_exists( 'Akismet' ) ) { |
|
883 | return new WP_Error( 'not_active', esc_html__( 'Please activate Akismet.', 'jetpack' ), array( 'status' => 400 ) ); |
|
884 | } |
|
885 | ||
886 | // What about if Akismet is put in a sub-directory or maybe in mu-plugins? |
|
887 | require_once WP_PLUGIN_DIR . '/akismet/class.akismet.php'; |
|
@@ 1075-1081 (lines=7) @@ | ||
1072 | * @return mixed|WP_Error VaultPress site data. Otherwise, a WP_Error instance with the corresponding error. |
|
1073 | */ |
|
1074 | public function get_vaultpress_data() { |
|
1075 | if ( ! class_exists( 'VaultPress' ) ) { |
|
1076 | return new WP_Error( |
|
1077 | 'not_active', |
|
1078 | esc_html__( 'The requested Jetpack module is not active.', 'jetpack' ), |
|
1079 | array( 'status' => 404 ) |
|
1080 | ); |
|
1081 | } |
|
1082 | ||
1083 | $vaultpress = new VaultPress(); |
|
1084 | if ( ! $vaultpress->is_registered() ) { |