| @@ 528-531 (lines=4) @@ | ||
| 525 | $json = false; |
|
| 526 | } |
|
| 527 | ||
| 528 | if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
|
| 529 | restore_current_blog(); |
|
| 530 | return new Jetpack_Error( 'jetpack_secret', '', $code ); |
|
| 531 | } |
|
| 532 | ||
| 533 | if ( isset( $json->jetpack_public ) ) { |
|
| 534 | $jetpack_public = (int) $json->jetpack_public; |
|
| @@ 5388-5390 (lines=3) @@ | ||
| 5385 | return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
|
| 5386 | } |
|
| 5387 | ||
| 5388 | if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
|
| 5389 | return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
|
| 5390 | } |
|
| 5391 | ||
| 5392 | if ( isset( $registration_details->jetpack_public ) ) { |
|
| 5393 | $jetpack_public = (int) $registration_details->jetpack_public; |
|