@@ 532-535 (lines=4) @@ | ||
529 | $json = false; |
|
530 | } |
|
531 | ||
532 | if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
|
533 | restore_current_blog(); |
|
534 | return new Jetpack_Error( 'jetpack_secret', '', $code ); |
|
535 | } |
|
536 | ||
537 | if ( isset( $json->jetpack_public ) ) { |
|
538 | $jetpack_public = (int) $json->jetpack_public; |
@@ 5094-5096 (lines=3) @@ | ||
5091 | return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
|
5092 | } |
|
5093 | ||
5094 | if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
|
5095 | return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
|
5096 | } |
|
5097 | ||
5098 | if ( isset( $registration_details->jetpack_public ) ) { |
|
5099 | $jetpack_public = (int) $registration_details->jetpack_public; |