@@ 505-508 (lines=4) @@ | ||
502 | $json = false; |
|
503 | } |
|
504 | ||
505 | if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
|
506 | restore_current_blog(); |
|
507 | return new Jetpack_Error( 'jetpack_secret', '', $code ); |
|
508 | } |
|
509 | ||
510 | if ( isset( $json->jetpack_public ) ) { |
|
511 | $jetpack_public = (int) $json->jetpack_public; |
@@ 4875-4876 (lines=2) @@ | ||
4872 | return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
|
4873 | } |
|
4874 | ||
4875 | if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
|
4876 | return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
|
4877 | } |
|
4878 | ||
4879 | if ( isset( $registration_details->jetpack_public ) ) { |