@@ 421-423 (lines=3) @@ | ||
418 | // will be able to validate the connection |
|
419 | $secrets = $jp->generate_secrets( 'register' ); |
|
420 | @list( $secret_1, $secret_2, $secret_eol ) = explode( ':', $secrets ); |
|
421 | if ( empty( $secret_1 ) || empty( $secret_2 ) || empty( $secret_eol ) || $secret_eol < time() ) { |
|
422 | return new Jetpack_Error( 'missing_secrets' ); |
|
423 | } |
|
424 | ||
425 | // Gra info for gmt offset |
|
426 | $gmt_offset = get_option( 'gmt_offset' ); |
@@ 5013-5015 (lines=3) @@ | ||
5010 | $secrets = Jetpack::init()->generate_secrets( 'register' ); |
|
5011 | ||
5012 | @list( $secret_1, $secret_2, $secret_eol ) = explode( ':', $secrets ); |
|
5013 | if ( empty( $secret_1 ) || empty( $secret_2 ) || empty( $secret_eol ) || $secret_eol < time() ) { |
|
5014 | return new Jetpack_Error( 'missing_secrets' ); |
|
5015 | } |
|
5016 | ||
5017 | $timeout = Jetpack::init()->get_remote_query_timeout_limit(); |
|
5018 |