| @@ 4787-4797 (lines=11) @@ | ||
| 4784 | return self::connection()->get_assumed_site_creation_date(); | |
| 4785 | } | |
| 4786 | ||
| 4787 | 	public static function apply_activation_source_to_args( &$args ) { | |
| 4788 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); | |
| 4789 | ||
| 4790 | 		if ( $activation_source_name ) { | |
| 4791 | $args['_as'] = urlencode( $activation_source_name ); | |
| 4792 | } | |
| 4793 | ||
| 4794 | 		if ( $activation_source_keyword ) { | |
| 4795 | $args['_ak'] = urlencode( $activation_source_keyword ); | |
| 4796 | } | |
| 4797 | } | |
| 4798 | ||
| 4799 | 	function build_reconnect_url( $raw = false ) { | |
| 4800 | $url = wp_nonce_url( self::admin_url( 'action=reconnect' ), 'jetpack-reconnect' ); | |
| @@ 1082-1094 (lines=13) @@ | ||
| 1079 | * @param Array $args arguments that need to have the source added. | |
| 1080 | * @return Array $amended arguments. | |
| 1081 | */ | |
| 1082 | 	public static function apply_activation_source_to_args( $args ) { | |
| 1083 | list( $activation_source_name, $activation_source_keyword ) = get_option( 'jetpack_activation_source' ); | |
| 1084 | ||
| 1085 | 		if ( $activation_source_name ) { | |
| 1086 | // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.urlencode_urlencode | |
| 1087 | $args['_as'] = urlencode( $activation_source_name ); | |
| 1088 | } | |
| 1089 | ||
| 1090 | 		if ( $activation_source_keyword ) { | |
| 1091 | // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.urlencode_urlencode | |
| 1092 | $args['_ak'] = urlencode( $activation_source_keyword ); | |
| 1093 | } | |
| 1094 | ||
| 1095 | return $args; | |
| 1096 | } | |
| 1097 | ||