class.jetpack-network.php 1 location
|
@@ 534-537 (lines=4) @@
|
| 531 |
|
$json = false; |
| 532 |
|
} |
| 533 |
|
|
| 534 |
|
if ( empty( $json->jetpack_secret ) || ! is_string( $json->jetpack_secret ) ) { |
| 535 |
|
restore_current_blog(); |
| 536 |
|
return new Jetpack_Error( 'jetpack_secret', '', $code ); |
| 537 |
|
} |
| 538 |
|
|
| 539 |
|
if ( isset( $json->jetpack_public ) ) { |
| 540 |
|
$jetpack_public = (int) $json->jetpack_public; |
class.jetpack.php 1 location
|
@@ 4997-4999 (lines=3) @@
|
| 4994 |
|
return new Jetpack_Error( 'unknown_error', __( 'Unknown error registering your Jetpack site', 'jetpack' ), wp_remote_retrieve_response_code( $response ) ); |
| 4995 |
|
} |
| 4996 |
|
|
| 4997 |
|
if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
| 4998 |
|
return new Jetpack_Error( 'jetpack_secret', '', wp_remote_retrieve_response_code( $response ) ); |
| 4999 |
|
} |
| 5000 |
|
|
| 5001 |
|
if ( isset( $registration_details->jetpack_public ) ) { |
| 5002 |
|
$jetpack_public = (int) $registration_details->jetpack_public; |
packages/connection/src/Manager.php 1 location
|
@@ 641-647 (lines=7) @@
|
| 638 |
|
); |
| 639 |
|
} |
| 640 |
|
|
| 641 |
|
if ( empty( $registration_details->jetpack_secret ) || ! is_string( $registration_details->jetpack_secret ) ) { |
| 642 |
|
return new \WP_Error( |
| 643 |
|
'jetpack_secret', |
| 644 |
|
'', |
| 645 |
|
wp_remote_retrieve_response_code( $response ) |
| 646 |
|
); |
| 647 |
|
} |
| 648 |
|
|
| 649 |
|
if ( isset( $registration_details->jetpack_public ) ) { |
| 650 |
|
$jetpack_public = (int) $registration_details->jetpack_public; |