@@ 519-522 (lines=4) @@ | ||
516 | $json = false; |
|
517 | } |
|
518 | ||
519 | if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
|
520 | restore_current_blog(); |
|
521 | return new Jetpack_Error( 'jetpack_secret', '', $code ); |
|
522 | } |
|
523 | ||
524 | if ( isset( $json->jetpack_public ) ) { |
|
525 | $jetpack_public = (int) $json->jetpack_public; |
@@ 4965-4966 (lines=2) @@ | ||
4962 | return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
|
4963 | } |
|
4964 | ||
4965 | if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
|
4966 | return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
|
4967 | } |
|
4968 | ||
4969 | if ( isset( $registration_details->jetpack_public ) ) { |