| @@ 511-514 (lines=4) @@ | ||
| 508 | $json = false; |
|
| 509 | } |
|
| 510 | ||
| 511 | if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
|
| 512 | restore_current_blog(); |
|
| 513 | return new Jetpack_Error( 'jetpack_secret', '', $code ); |
|
| 514 | } |
|
| 515 | ||
| 516 | if ( isset( $json->jetpack_public ) ) { |
|
| 517 | $jetpack_public = (int) $json->jetpack_public; |
|
| @@ 4977-4978 (lines=2) @@ | ||
| 4974 | return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
|
| 4975 | } |
|
| 4976 | ||
| 4977 | if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
|
| 4978 | return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
|
| 4979 | } |
|
| 4980 | ||
| 4981 | if ( isset( $registration_details->jetpack_public ) ) { |
|