@@ 4664-4674 (lines=11) @@ | ||
4661 | return min( $earliest_registration_date, $earliest_post_date ); |
|
4662 | } |
|
4663 | ||
4664 | public static function apply_activation_source_to_args( &$args ) { |
|
4665 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
4666 | ||
4667 | if ( $activation_source_name ) { |
|
4668 | $args['_as'] = urlencode( $activation_source_name ); |
|
4669 | } |
|
4670 | ||
4671 | if ( $activation_source_keyword ) { |
|
4672 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
4673 | } |
|
4674 | } |
|
4675 | ||
4676 | function build_reconnect_url( $raw = false ) { |
|
4677 | $url = wp_nonce_url( Jetpack::admin_url( 'action=reconnect' ), 'jetpack-reconnect' ); |
@@ 1023-1035 (lines=13) @@ | ||
1020 | * @param Array $args arguments that need to have the source added. |
|
1021 | * @return Array $amended arguments. |
|
1022 | */ |
|
1023 | public static function apply_activation_source_to_args( $args ) { |
|
1024 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
1025 | ||
1026 | if ( $activation_source_name ) { |
|
1027 | $args['_as'] = urlencode( $activation_source_name ); |
|
1028 | } |
|
1029 | ||
1030 | if ( $activation_source_keyword ) { |
|
1031 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
1032 | } |
|
1033 | ||
1034 | return $args; |
|
1035 | } |
|
1036 | ||
1037 | /** |
|
1038 | * Returns the callable that would be used to generate secrets. |