class.jetpack-network.php 1 location
|
@@ 532-535 (lines=4) @@
|
| 529 |
|
$json = false; |
| 530 |
|
} |
| 531 |
|
|
| 532 |
|
if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
| 533 |
|
restore_current_blog(); |
| 534 |
|
return new Jetpack_Error( 'jetpack_secret', '', $code ); |
| 535 |
|
} |
| 536 |
|
|
| 537 |
|
if ( isset( $json->jetpack_public ) ) { |
| 538 |
|
$jetpack_public = (int) $json->jetpack_public; |
class.jetpack.php 1 location
|
@@ 5112-5114 (lines=3) @@
|
| 5109 |
|
return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
| 5110 |
|
} |
| 5111 |
|
|
| 5112 |
|
if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
| 5113 |
|
return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
| 5114 |
|
} |
| 5115 |
|
|
| 5116 |
|
if ( isset( $registration_details->jetpack_public ) ) { |
| 5117 |
|
$jetpack_public = (int) $registration_details->jetpack_public; |
packages/connection/src/Manager.php 1 location
|
@@ 212-218 (lines=7) @@
|
| 209 |
|
); |
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
| 213 |
|
return new \WP_Error( |
| 214 |
|
'jetpack_secret', |
| 215 |
|
'', |
| 216 |
|
wp_remote_retrieve_response_code( $response ) |
| 217 |
|
); |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
if ( isset( $registration_details->jetpack_public ) ) { |
| 221 |
|
$jetpack_public = (int) $registration_details->jetpack_public; |