@@ 1731-1734 (lines=4) @@ | ||
1728 | $args = array( 'headers' => array() ); |
|
1729 | ||
1730 | // Allow use a store sandbox. Internal ref: PCYsg-IA-p2. |
|
1731 | if ( isset( $_COOKIE ) && isset( $_COOKIE['store_sandbox'] ) ) { |
|
1732 | $secret = $_COOKIE['store_sandbox']; |
|
1733 | $args['headers']['Cookie'] = "store_sandbox=$secret;"; |
|
1734 | } |
|
1735 | ||
1736 | $response = Client::wpcom_json_api_request_as_blog( sprintf( '/sites/%d', $site_id ) . '?force=wpcom', '1.1', $args ); |
|
1737 | $body = wp_remote_retrieve_body( $response ); |
@@ 369-372 (lines=4) @@ | ||
366 | ) { |
|
367 | ||
368 | // Allow use a store sandbox. Internal ref: PCYsg-IA-p2. |
|
369 | if ( isset( $_COOKIE ) && isset( $_COOKIE['store_sandbox'] ) ) { |
|
370 | $secret = $_COOKIE['store_sandbox']; |
|
371 | $args['headers']['Cookie'] = "store_sandbox=$secret;"; |
|
372 | } |
|
373 | ||
374 | $filtered_args = array_intersect_key( |
|
375 | $args, |