| @@ 420-426 (lines=7) @@ | ||
| 417 | // Save the secrets in the subsite so when the wpcom server does a pingback it |
|
| 418 | // will be able to validate the connection |
|
| 419 | $secrets = $jp->generate_secrets( 'register' ); |
|
| 420 | if ( |
|
| 421 | empty( $secrets['secret_1'] ) || |
|
| 422 | empty( $secrets['secret_2'] ) || |
|
| 423 | empty( $secrets['exp'] ) |
|
| 424 | ) { |
|
| 425 | return new Jetpack_Error( 'missing_secrets' ); |
|
| 426 | } |
|
| 427 | ||
| 428 | // Gra info for gmt offset |
|
| 429 | $gmt_offset = get_option( 'gmt_offset' ); |
|
| @@ 4896-4902 (lines=7) @@ | ||
| 4893 | add_action( 'pre_update_jetpack_option_register', array( 'Jetpack_Options', 'delete_option' ) ); |
|
| 4894 | $secrets = Jetpack::generate_secrets( 'register' ); |
|
| 4895 | ||
| 4896 | if ( |
|
| 4897 | empty( $secrets['secret_1'] ) || |
|
| 4898 | empty( $secrets['secret_2'] ) || |
|
| 4899 | empty( $secrets['exp'] ) |
|
| 4900 | ) { |
|
| 4901 | return new Jetpack_Error( 'missing_secrets' ); |
|
| 4902 | } |
|
| 4903 | ||
| 4904 | $timeout = Jetpack::init()->get_remote_query_timeout_limit(); |
|
| 4905 | ||