@@ 4638-4648 (lines=11) @@ | ||
4635 | return min( $earliest_registration_date, $earliest_post_date ); |
|
4636 | } |
|
4637 | ||
4638 | public static function apply_activation_source_to_args( &$args ) { |
|
4639 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
4640 | ||
4641 | if ( $activation_source_name ) { |
|
4642 | $args['_as'] = urlencode( $activation_source_name ); |
|
4643 | } |
|
4644 | ||
4645 | if ( $activation_source_keyword ) { |
|
4646 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
4647 | } |
|
4648 | } |
|
4649 | ||
4650 | function build_reconnect_url( $raw = false ) { |
|
4651 | $url = wp_nonce_url( Jetpack::admin_url( 'action=reconnect' ), 'jetpack-reconnect' ); |
@@ 403-415 (lines=13) @@ | ||
400 | return min( $earliest_registration_date, $earliest_post_date ); |
|
401 | } |
|
402 | ||
403 | public static function apply_activation_source_to_args( $args ) { |
|
404 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
405 | ||
406 | if ( $activation_source_name ) { |
|
407 | $args['_as'] = urlencode( $activation_source_name ); |
|
408 | } |
|
409 | ||
410 | if ( $activation_source_keyword ) { |
|
411 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
412 | } |
|
413 | ||
414 | return $args; |
|
415 | } |
|
416 | ||
417 | /** |
|
418 | * Returns the callable that would be used to generate secrets. |