| @@ 531-534 (lines=4) @@ | ||
| 528 | $json = false; |
|
| 529 | } |
|
| 530 | ||
| 531 | if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
|
| 532 | restore_current_blog(); |
|
| 533 | return new Jetpack_Error( 'jetpack_secret', '', $code ); |
|
| 534 | } |
|
| 535 | ||
| 536 | if ( isset( $json->jetpack_public ) ) { |
|
| 537 | $jetpack_public = (int) $json->jetpack_public; |
|
| @@ 5154-5156 (lines=3) @@ | ||
| 5151 | return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
|
| 5152 | } |
|
| 5153 | ||
| 5154 | if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
|
| 5155 | return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
|
| 5156 | } |
|
| 5157 | ||
| 5158 | if ( isset( $registration_details->jetpack_public ) ) { |
|
| 5159 | $jetpack_public = (int) $registration_details->jetpack_public; |
|