| @@ 534-537 (lines=4) @@ | ||
| 531 | $json = false; | |
| 532 | } | |
| 533 | ||
| 534 | 		if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { | |
| 535 | restore_current_blog(); | |
| 536 | return new Jetpack_Error( 'jetpack_secret', '', $code ); | |
| 537 | } | |
| 538 | ||
| 539 | 		if ( isset( $json->jetpack_public ) ) { | |
| 540 | $jetpack_public = (int) $json->jetpack_public; | |
| @@ 5159-5160 (lines=2) @@ | ||
| 5156 | return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); | |
| 5157 | } | |
| 5158 | ||
| 5159 | 		if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { | |
| 5160 | return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); | |
| 5161 | } | |
| 5162 | ||
| 5163 | 		if ( isset( $registration_details->jetpack_public ) ) { | |