| @@ 1064-1076 (lines=13) @@ | ||
| 1061 | * @param Array $args arguments that need to have the source added. | |
| 1062 | * @return Array $amended arguments. | |
| 1063 | */ | |
| 1064 | 	public static function apply_activation_source_to_args( $args ) { | |
| 1065 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); | |
| 1066 | ||
| 1067 | 		if ( $activation_source_name ) { | |
| 1068 | $args['_as'] = urlencode( $activation_source_name ); | |
| 1069 | } | |
| 1070 | ||
| 1071 | 		if ( $activation_source_keyword ) { | |
| 1072 | $args['_ak'] = urlencode( $activation_source_keyword ); | |
| 1073 | } | |
| 1074 | ||
| 1075 | return $args; | |
| 1076 | } | |
| 1077 | ||
| 1078 | /** | |
| 1079 | * Returns the callable that would be used to generate secrets. | |
| @@ 4704-4714 (lines=11) @@ | ||
| 4701 | return min( $earliest_registration_date, $earliest_post_date ); | |
| 4702 | } | |
| 4703 | ||
| 4704 | 	public static function apply_activation_source_to_args( &$args ) { | |
| 4705 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); | |
| 4706 | ||
| 4707 | 		if ( $activation_source_name ) { | |
| 4708 | $args['_as'] = urlencode( $activation_source_name ); | |
| 4709 | } | |
| 4710 | ||
| 4711 | 		if ( $activation_source_keyword ) { | |
| 4712 | $args['_ak'] = urlencode( $activation_source_keyword ); | |
| 4713 | } | |
| 4714 | } | |
| 4715 | ||
| 4716 | 	function build_reconnect_url( $raw = false ) { | |
| 4717 | $url = wp_nonce_url( Jetpack::admin_url( 'action=reconnect' ), 'jetpack-reconnect' ); | |