projects/plugins/jetpack/_inc/lib/class.core-rest-api-endpoints.php 1 location
|
@@ 1018-1022 (lines=5) @@
|
1015 |
|
|
1016 |
|
$xml->query( 'jetpack.isSiteVerified', $args ); |
1017 |
|
|
1018 |
|
if ( $xml->isError() ) { |
1019 |
|
return new WP_Error( 'error_checking_if_site_verified_google', sprintf( '%s: %s', $xml->getErrorCode(), $xml->getErrorMessage() ) ); |
1020 |
|
} else { |
1021 |
|
return $xml->getResponse(); |
1022 |
|
} |
1023 |
|
} |
1024 |
|
|
1025 |
|
|
projects/plugins/jetpack/modules/monitor.php 1 location
|
@@ 99-105 (lines=7) @@
|
96 |
|
) ); |
97 |
|
$xml->query( 'jetpack.monitor.isUserInNotifications' ); |
98 |
|
|
99 |
|
if ( $xml->isError() ) { |
100 |
|
if ( $die_on_error ) { |
101 |
|
wp_die( sprintf( '%s: %s', $xml->getErrorCode(), $xml->getErrorMessage() ) ); |
102 |
|
} else { |
103 |
|
return new WP_Error( $xml->getErrorCode(), $xml->getErrorMessage(), array( 'status' => 400 ) ); |
104 |
|
} |
105 |
|
} |
106 |
|
return $xml->getResponse(); |
107 |
|
} |
108 |
|
|
projects/packages/licensing/src/class-licensing.php 1 location
|
@@ 164-168 (lines=5) @@
|
161 |
|
|
162 |
|
$xml = $this->attach_licenses_request( $licenses ); |
163 |
|
|
164 |
|
if ( $xml->isError() ) { |
165 |
|
$error = new WP_Error( 'request_failed', __( 'License attach request failed.', 'jetpack' ) ); |
166 |
|
$error->add( $xml->getErrorCode(), $xml->getErrorMessage() ); |
167 |
|
return $error; |
168 |
|
} |
169 |
|
|
170 |
|
$results = array_map( |
171 |
|
function ( $response ) { |