| @@ 4935-4945 (lines=11) @@ | ||
| 4932 | return self::connection()->get_assumed_site_creation_date(); | |
| 4933 | } | |
| 4934 | ||
| 4935 | 	public static function apply_activation_source_to_args( &$args ) { | |
| 4936 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); | |
| 4937 | ||
| 4938 | 		if ( $activation_source_name ) { | |
| 4939 | $args['_as'] = urlencode( $activation_source_name ); | |
| 4940 | } | |
| 4941 | ||
| 4942 | 		if ( $activation_source_keyword ) { | |
| 4943 | $args['_ak'] = urlencode( $activation_source_keyword ); | |
| 4944 | } | |
| 4945 | } | |
| 4946 | ||
| 4947 | 	function build_reconnect_url( $raw = false ) { | |
| 4948 | $url = wp_nonce_url( self::admin_url( 'action=reconnect' ), 'jetpack-reconnect' ); | |
| @@ 1236-1250 (lines=15) @@ | ||
| 1233 | * @param array $args arguments that need to have the source added. | |
| 1234 | * @return array $amended arguments. | |
| 1235 | */ | |
| 1236 | 	public static function apply_activation_source_to_args( $args ) { | |
| 1237 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); | |
| 1238 | ||
| 1239 | 		if ( $activation_source_name ) { | |
| 1240 | // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.urlencode_urlencode | |
| 1241 | $args['_as'] = urlencode( $activation_source_name ); | |
| 1242 | } | |
| 1243 | ||
| 1244 | 		if ( $activation_source_keyword ) { | |
| 1245 | // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.urlencode_urlencode | |
| 1246 | $args['_ak'] = urlencode( $activation_source_keyword ); | |
| 1247 | } | |
| 1248 | ||
| 1249 | return $args; | |
| 1250 | } | |
| 1251 | ||
| 1252 | /** | |
| 1253 | * Returns the callable that would be used to generate secrets. | |