| @@ 4605-4615 (lines=11) @@ | ||
| 4602 | return min( $earliest_registration_date, $earliest_post_date ); |
|
| 4603 | } |
|
| 4604 | ||
| 4605 | public static function apply_activation_source_to_args( &$args ) { |
|
| 4606 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
| 4607 | ||
| 4608 | if ( $activation_source_name ) { |
|
| 4609 | $args['_as'] = urlencode( $activation_source_name ); |
|
| 4610 | } |
|
| 4611 | ||
| 4612 | if ( $activation_source_keyword ) { |
|
| 4613 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
| 4614 | } |
|
| 4615 | } |
|
| 4616 | ||
| 4617 | function build_reconnect_url( $raw = false ) { |
|
| 4618 | $url = wp_nonce_url( Jetpack::admin_url( 'action=reconnect' ), 'jetpack-reconnect' ); |
|
| @@ 960-972 (lines=13) @@ | ||
| 957 | * @param Array $args arguments that need to have the source added. |
|
| 958 | * @return Array $amended arguments. |
|
| 959 | */ |
|
| 960 | public static function apply_activation_source_to_args( $args ) { |
|
| 961 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
| 962 | ||
| 963 | if ( $activation_source_name ) { |
|
| 964 | $args['_as'] = urlencode( $activation_source_name ); |
|
| 965 | } |
|
| 966 | ||
| 967 | if ( $activation_source_keyword ) { |
|
| 968 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
| 969 | } |
|
| 970 | ||
| 971 | return $args; |
|
| 972 | } |
|
| 973 | ||
| 974 | /** |
|
| 975 | * Returns the callable that would be used to generate secrets. |
|