| @@ 504-507 (lines=4) @@ | ||
| 501 | $json = false; |
|
| 502 | } |
|
| 503 | ||
| 504 | if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
|
| 505 | restore_current_blog(); |
|
| 506 | return new Jetpack_Error( 'jetpack_secret', '', $code ); |
|
| 507 | } |
|
| 508 | ||
| 509 | if ( isset( $json->jetpack_public ) ) { |
|
| 510 | $jetpack_public = (int) $json->jetpack_public; |
|
| @@ 4771-4772 (lines=2) @@ | ||
| 4768 | return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
|
| 4769 | } |
|
| 4770 | ||
| 4771 | if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
|
| 4772 | return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
|
| 4773 | } |
|
| 4774 | ||
| 4775 | if ( isset( $registration_details->jetpack_public ) ) { |
|