@@ 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; |
@@ 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 ) ) { |