| @@ 519-522 (lines=4) @@ | ||
| 516 | $json = false; |
|
| 517 | } |
|
| 518 | ||
| 519 | if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
|
| 520 | restore_current_blog(); |
|
| 521 | return new Jetpack_Error( 'jetpack_secret', '', $code ); |
|
| 522 | } |
|
| 523 | ||
| 524 | if ( isset( $json->jetpack_public ) ) { |
|
| 525 | $jetpack_public = (int) $json->jetpack_public; |
|
| @@ 5506-5508 (lines=3) @@ | ||
| 5503 | return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
|
| 5504 | } |
|
| 5505 | ||
| 5506 | if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
|
| 5507 | return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
|
| 5508 | } |
|
| 5509 | ||
| 5510 | if ( isset( $registration_details->jetpack_public ) ) { |
|
| 5511 | $jetpack_public = (int) $registration_details->jetpack_public; |
|