@@ 427-433 (lines=7) @@ | ||
424 | // Save the secrets in the subsite so when the wpcom server does a pingback it |
|
425 | // will be able to validate the connection |
|
426 | $secrets = $jp->generate_secrets( 'register' ); |
|
427 | if ( |
|
428 | empty( $secrets['secret_1'] ) || |
|
429 | empty( $secrets['secret_2'] ) || |
|
430 | empty( $secrets['exp'] ) |
|
431 | ) { |
|
432 | return new Jetpack_Error( 'missing_secrets' ); |
|
433 | } |
|
434 | ||
435 | // Gra info for gmt offset |
|
436 | $gmt_offset = get_option( 'gmt_offset' ); |
@@ 5428-5434 (lines=7) @@ | ||
5425 | add_action( 'pre_update_jetpack_option_register', array( 'Jetpack_Options', 'delete_option' ) ); |
|
5426 | $secrets = Jetpack::generate_secrets( 'register' ); |
|
5427 | ||
5428 | if ( |
|
5429 | empty( $secrets['secret_1'] ) || |
|
5430 | empty( $secrets['secret_2'] ) || |
|
5431 | empty( $secrets['exp'] ) |
|
5432 | ) { |
|
5433 | return new Jetpack_Error( 'missing_secrets' ); |
|
5434 | } |
|
5435 | ||
5436 | // better to try (and fail) to set a higher timeout than this system |
|
5437 | // supports than to have register fail for more users than it should |