projects/plugins/jetpack/_inc/class.jetpack-provision.php 1 location
|
@@ 182-184 (lines=3) @@
|
179 |
|
self::get_api_host(), |
180 |
|
$blog_id |
181 |
|
) ); |
182 |
|
if ( ! empty( $named_args['partner_tracking_id'] ) ) { |
183 |
|
$url = esc_url_raw( add_query_arg( 'partner_tracking_id', $named_args['partner_tracking_id'], $url ) ); |
184 |
|
} |
185 |
|
|
186 |
|
// Add calypso env if set. |
187 |
|
$calypso_env = Jetpack::get_calypso_env(); |
projects/plugins/jetpack/class.jetpack-cli.php 1 location
|
@@ 1152-1154 (lines=3) @@
|
1149 |
|
); |
1150 |
|
|
1151 |
|
$url = sprintf( '%s/rest/v1.3/jpphp/%s/partner-cancel', $this->get_api_host(), $site_identifier ); |
1152 |
|
if ( ! empty( $named_args ) && ! empty( $named_args['partner_tracking_id'] ) ) { |
1153 |
|
$url = esc_url_raw( add_query_arg( 'partner_tracking_id', $named_args['partner_tracking_id'], $url ) ); |
1154 |
|
} |
1155 |
|
|
1156 |
|
$result = Client::_wp_remote_request( $url, $request ); |
1157 |
|
|