| @@ 512-515 (lines=4) @@ | ||
| 509 | $json = false; |
|
| 510 | } |
|
| 511 | ||
| 512 | if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
|
| 513 | restore_current_blog(); |
|
| 514 | return new Jetpack_Error( 'jetpack_secret', '', $code ); |
|
| 515 | } |
|
| 516 | ||
| 517 | if ( isset( $json->jetpack_public ) ) { |
|
| 518 | $jetpack_public = (int) $json->jetpack_public; |
|
| @@ 5308-5310 (lines=3) @@ | ||
| 5305 | return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
|
| 5306 | } |
|
| 5307 | ||
| 5308 | if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
|
| 5309 | return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
|
| 5310 | } |
|
| 5311 | ||
| 5312 | if ( isset( $registration_details->jetpack_public ) ) { |
|
| 5313 | $jetpack_public = (int) $registration_details->jetpack_public; |
|