| @@ 509-512 (lines=4) @@ | ||
| 506 | $json = false; |
|
| 507 | } |
|
| 508 | ||
| 509 | if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
|
| 510 | restore_current_blog(); |
|
| 511 | return new Jetpack_Error( 'jetpack_secret', '', $code ); |
|
| 512 | } |
|
| 513 | ||
| 514 | if ( isset( $json->jetpack_public ) ) { |
|
| 515 | $jetpack_public = (int) $json->jetpack_public; |
|
| @@ 4895-4896 (lines=2) @@ | ||
| 4892 | return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
|
| 4893 | } |
|
| 4894 | ||
| 4895 | if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
|
| 4896 | return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
|
| 4897 | } |
|
| 4898 | ||
| 4899 | if ( isset( $registration_details->jetpack_public ) ) { |
|