class.jetpack-network.php 1 location
|
@@ 432-438 (lines=7) @@
|
429 |
|
// Save the secrets in the subsite so when the wpcom server does a pingback it |
430 |
|
// will be able to validate the connection |
431 |
|
$secrets = $jp->generate_secrets( 'register' ); |
432 |
|
if ( |
433 |
|
empty( $secrets['secret_1'] ) || |
434 |
|
empty( $secrets['secret_2'] ) || |
435 |
|
empty( $secrets['exp'] ) |
436 |
|
) { |
437 |
|
return new Jetpack_Error( 'missing_secrets' ); |
438 |
|
} |
439 |
|
|
440 |
|
// Gra info for gmt offset |
441 |
|
$gmt_offset = get_option( 'gmt_offset' ); |
packages/connection/src/Manager.php 1 location
|
@@ 574-580 (lines=7) @@
|
571 |
|
add_action( 'pre_update_jetpack_option_register', array( '\Jetpack_Options', 'delete_option' ) ); |
572 |
|
$secrets = $this->generate_secrets( 'register', get_current_user_id(), 600 ); |
573 |
|
|
574 |
|
if ( |
575 |
|
empty( $secrets['secret_1'] ) || |
576 |
|
empty( $secrets['secret_2'] ) || |
577 |
|
empty( $secrets['exp'] ) |
578 |
|
) { |
579 |
|
return new \WP_Error( 'missing_secrets' ); |
580 |
|
} |
581 |
|
|
582 |
|
// Better to try (and fail) to set a higher timeout than this system |
583 |
|
// supports than to have register fail for more users than it should. |
class.jetpack.php 1 location
|
@@ 4938-4944 (lines=7) @@
|
4935 |
|
add_action( 'pre_update_jetpack_option_register', array( 'Jetpack_Options', 'delete_option' ) ); |
4936 |
|
$secrets = Jetpack::generate_secrets( 'register' ); |
4937 |
|
|
4938 |
|
if ( |
4939 |
|
empty( $secrets['secret_1'] ) || |
4940 |
|
empty( $secrets['secret_2'] ) || |
4941 |
|
empty( $secrets['exp'] ) |
4942 |
|
) { |
4943 |
|
return new Jetpack_Error( 'missing_secrets' ); |
4944 |
|
} |
4945 |
|
|
4946 |
|
// better to try (and fail) to set a higher timeout than this system |
4947 |
|
// supports than to have register fail for more users than it should |