diff options
Diffstat (limited to 'plugins/jetpack/class.jetpack-client.php')
-rw-r--r-- | plugins/jetpack/class.jetpack-client.php | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/plugins/jetpack/class.jetpack-client.php b/plugins/jetpack/class.jetpack-client.php index 1fb51235..cabb2e03 100644 --- a/plugins/jetpack/class.jetpack-client.php +++ b/plugins/jetpack/class.jetpack-client.php @@ -132,17 +132,6 @@ class Jetpack_Client { 'Authorization' => "X_JETPACK " . join( ' ', $header_pieces ), ) ); - $host = parse_url( $url, PHP_URL_HOST ); - - // If we have a JETPACK__WPCOM_JSON_API_HOST_HEADER set, then let's use - // that, otherwise, let's fallback to the standard. - if ( defined( 'JETPACK__WPCOM_JSON_API_HOST_HEADER' ) && JETPACK__WPCOM_JSON_API_HOST_HEADER ) { - $request['headers']['Host'] = JETPACK__WPCOM_JSON_API_HOST_HEADER; - - } elseif ( $host === JETPACK__WPCOM_JSON_API_HOST ) { - $request['headers']['Host'] = 'public-api.wordpress.com'; - } - if ( 'header' != $args['auth_location'] ) { $url = add_query_arg( 'signature', urlencode( $signature ), $url ); } |