| @@ 501-504 (lines=4) @@ | ||
| 498 | $json = false; |
|
| 499 | } |
|
| 500 | ||
| 501 | if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
|
| 502 | restore_current_blog(); |
|
| 503 | return new Jetpack_Error( 'jetpack_secret', '', $code ); |
|
| 504 | } |
|
| 505 | ||
| 506 | if ( isset( $json->jetpack_public ) ) { |
|
| 507 | $jetpack_public = (int) $json->jetpack_public; |
|
| @@ 4671-4672 (lines=2) @@ | ||
| 4668 | return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
|
| 4669 | } |
|
| 4670 | ||
| 4671 | if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
|
| 4672 | return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
|
| 4673 | } |
|
| 4674 | ||
| 4675 | if ( isset( $registration_details->jetpack_public ) ) { |
|