'image-guide', ) ); // If WPCOM complains, add a little context to the error. if ( is_wp_error( $response ) ) { if ( $response->get_error_code() === '429' ) { return new \WP_Error( $response->get_error_code(), __( 'You have sent too many requests, please try later.', 'jetpack-boost' ) ); } return new \WP_Error( $response->get_error_code(), sprintf( /* translators: %s is the original error message from WordPress.com */ __( 'Jetpack Boost Cloud Error: "%s"', 'jetpack-boost' ), $response->get_error_message() ) ); } // Send a success response. return array( 'ok' => true, ); } }