@@ 4598-4608 (lines=11) @@ | ||
4595 | return min( $earliest_registration_date, $earliest_post_date ); |
|
4596 | } |
|
4597 | ||
4598 | public static function apply_activation_source_to_args( &$args ) { |
|
4599 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
4600 | ||
4601 | if ( $activation_source_name ) { |
|
4602 | $args['_as'] = urlencode( $activation_source_name ); |
|
4603 | } |
|
4604 | ||
4605 | if ( $activation_source_keyword ) { |
|
4606 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
4607 | } |
|
4608 | } |
|
4609 | ||
4610 | function build_reconnect_url( $raw = false ) { |
|
4611 | $url = wp_nonce_url( Jetpack::admin_url( 'action=reconnect' ), 'jetpack-reconnect' ); |
@@ 992-1004 (lines=13) @@ | ||
989 | * @param Array $args arguments that need to have the source added. |
|
990 | * @return Array $amended arguments. |
|
991 | */ |
|
992 | public static function apply_activation_source_to_args( $args ) { |
|
993 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); |
|
994 | ||
995 | if ( $activation_source_name ) { |
|
996 | $args['_as'] = urlencode( $activation_source_name ); |
|
997 | } |
|
998 | ||
999 | if ( $activation_source_keyword ) { |
|
1000 | $args['_ak'] = urlencode( $activation_source_keyword ); |
|
1001 | } |
|
1002 | ||
1003 | return $args; |
|
1004 | } |
|
1005 | ||
1006 | /** |
|
1007 | * Returns the callable that would be used to generate secrets. |