| @@ 4543-4553 (lines=11) @@ | ||
| 4540 | return min( $earliest_registration_date, $earliest_post_date ); |
|
| 4541 | } |
|
| 4542 | ||
| 4543 | public static function apply_activation_source_to_args( &$args ) { |
|
| 4544 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
| 4545 | ||
| 4546 | if ( $activation_source_name ) { |
|
| 4547 | $args['_as'] = urlencode( $activation_source_name ); |
|
| 4548 | } |
|
| 4549 | ||
| 4550 | if ( $activation_source_keyword ) { |
|
| 4551 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
| 4552 | } |
|
| 4553 | } |
|
| 4554 | ||
| 4555 | function build_reconnect_url( $raw = false ) { |
|
| 4556 | $url = wp_nonce_url( Jetpack::admin_url( 'action=reconnect' ), 'jetpack-reconnect' ); |
|
| @@ 999-1011 (lines=13) @@ | ||
| 996 | * @param Array $args arguments that need to have the source added. |
|
| 997 | * @return Array $amended arguments. |
|
| 998 | */ |
|
| 999 | public static function apply_activation_source_to_args( $args ) { |
|
| 1000 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
| 1001 | ||
| 1002 | if ( $activation_source_name ) { |
|
| 1003 | $args['_as'] = urlencode( $activation_source_name ); |
|
| 1004 | } |
|
| 1005 | ||
| 1006 | if ( $activation_source_keyword ) { |
|
| 1007 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
| 1008 | } |
|
| 1009 | ||
| 1010 | return $args; |
|
| 1011 | } |
|
| 1012 | ||
| 1013 | /** |
|
| 1014 | * Returns the callable that would be used to generate secrets. |
|