PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.7.7
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.7.7
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | modules/oauth/rest/connect-init.php +5 -1 1.5.31.7.7 View file →
@@ -27,12 +27,16 @@
27 27 return [ 'GET' ];
28 28 }
29 29
30 30 public function get( WP_REST_Request $request ) {
31 - $this->verify_nonce_and_capability(
31 + $error = $this->verify_nonce_and_capability(
32 32 $request->get_param( self::NONCE_NAME ),
33 33 self::NONCE_NAME
34 34 );
35 +
36 + if ( $error ) {
37 + return $error;
38 + }
35 39
36 40 if ( Connect::is_connected() ) {
37 41 return $this->respond_error_json( [
38 42 'message' => esc_html__( 'You are already connected', 'image-optimization' ),