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