@@ 4616-4626 (lines=11) @@ | ||
4613 | return min( $earliest_registration_date, $earliest_post_date ); |
|
4614 | } |
|
4615 | ||
4616 | public static function apply_activation_source_to_args( &$args ) { |
|
4617 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
4618 | ||
4619 | if ( $activation_source_name ) { |
|
4620 | $args['_as'] = urlencode( $activation_source_name ); |
|
4621 | } |
|
4622 | ||
4623 | if ( $activation_source_keyword ) { |
|
4624 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
4625 | } |
|
4626 | } |
|
4627 | ||
4628 | function build_reconnect_url( $raw = false ) { |
|
4629 | $url = wp_nonce_url( Jetpack::admin_url( 'action=reconnect' ), 'jetpack-reconnect' ); |
@@ 448-460 (lines=13) @@ | ||
445 | * @param Array $args arguments that need to have the source added. |
|
446 | * @return Array $amended arguments. |
|
447 | */ |
|
448 | public static function apply_activation_source_to_args( $args ) { |
|
449 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
450 | ||
451 | if ( $activation_source_name ) { |
|
452 | $args['_as'] = urlencode( $activation_source_name ); |
|
453 | } |
|
454 | ||
455 | if ( $activation_source_keyword ) { |
|
456 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
457 | } |
|
458 | ||
459 | return $args; |
|
460 | } |
|
461 | ||
462 | /** |
|
463 | * Returns the callable that would be used to generate secrets. |