diff --git a/src/wp-includes/http.php b/src/wp-includes/http.php index 57746ff802..f70a720cc8 100644 --- a/src/wp-includes/http.php +++ b/src/wp-includes/http.php @@ -219,7 +219,7 @@ function wp_remote_head($url, $args = array()) { * @param array $response HTTP response. * @return array The headers of the response. Empty array if incorrect parameter given. */ -function wp_remote_retrieve_headers(&$response) { +function wp_remote_retrieve_headers( $response ) { if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers'])) return array(); @@ -235,7 +235,7 @@ function wp_remote_retrieve_headers(&$response) { * @param string $header Header name to retrieve value from. * @return string The header value. Empty string on if incorrect parameter given, or if the header doesn't exist. */ -function wp_remote_retrieve_header(&$response, $header) { +function wp_remote_retrieve_header( $response, $header ) { if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers'])) return ''; @@ -255,7 +255,7 @@ function wp_remote_retrieve_header(&$response, $header) { * @param array $response HTTP response. * @return string the response code. Empty string on incorrect parameter given. */ -function wp_remote_retrieve_response_code(&$response) { +function wp_remote_retrieve_response_code( $response ) { if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response'])) return ''; @@ -272,7 +272,7 @@ function wp_remote_retrieve_response_code(&$response) { * @param array $response HTTP response. * @return string The response message. Empty string on incorrect parameter given. */ -function wp_remote_retrieve_response_message(&$response) { +function wp_remote_retrieve_response_message( $response ) { if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response'])) return ''; @@ -287,7 +287,7 @@ function wp_remote_retrieve_response_message(&$response) { * @param array $response HTTP response. * @return string The body of the response. Empty string if no body or incorrect parameter given. */ -function wp_remote_retrieve_body(&$response) { +function wp_remote_retrieve_body( $response ) { if ( is_wp_error($response) || ! isset($response['body']) ) return '';