| @@ 4600-4610 (lines=11) @@ | ||
| 4597 | return min( $earliest_registration_date, $earliest_post_date ); |
|
| 4598 | } |
|
| 4599 | ||
| 4600 | public static function apply_activation_source_to_args( &$args ) { |
|
| 4601 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
| 4602 | ||
| 4603 | if ( $activation_source_name ) { |
|
| 4604 | $args['_as'] = urlencode( $activation_source_name ); |
|
| 4605 | } |
|
| 4606 | ||
| 4607 | if ( $activation_source_keyword ) { |
|
| 4608 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
| 4609 | } |
|
| 4610 | } |
|
| 4611 | ||
| 4612 | function build_reconnect_url( $raw = false ) { |
|
| 4613 | $url = wp_nonce_url( Jetpack::admin_url( 'action=reconnect' ), 'jetpack-reconnect' ); |
|
| @@ 1012-1024 (lines=13) @@ | ||
| 1009 | * @param Array $args arguments that need to have the source added. |
|
| 1010 | * @return Array $amended arguments. |
|
| 1011 | */ |
|
| 1012 | public static function apply_activation_source_to_args( $args ) { |
|
| 1013 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
| 1014 | ||
| 1015 | if ( $activation_source_name ) { |
|
| 1016 | $args['_as'] = urlencode( $activation_source_name ); |
|
| 1017 | } |
|
| 1018 | ||
| 1019 | if ( $activation_source_keyword ) { |
|
| 1020 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
| 1021 | } |
|
| 1022 | ||
| 1023 | return $args; |
|
| 1024 | } |
|
| 1025 | ||
| 1026 | /** |
|
| 1027 | * Returns the callable that would be used to generate secrets. |
|