Make WordPress Core


Ignore:
Timestamp:
05/05/2014 06:45:14 PM (11 years ago)
Author:
wonderboymusic
Message:

Remove by-reference modifiers from arguments in wp_remote_retrieve_* functions.

Props jesin.
Fixes #27687.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/http.php

    r27953 r28257  
    220220 * @return array The headers of the response. Empty array if incorrect parameter given.
    221221 */
    222 function wp_remote_retrieve_headers(&$response) {
     222function wp_remote_retrieve_headers( $response ) {
    223223    if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers']))
    224224        return array();
     
    236236 * @return string The header value. Empty string on if incorrect parameter given, or if the header doesn't exist.
    237237 */
    238 function wp_remote_retrieve_header(&$response, $header) {
     238function wp_remote_retrieve_header( $response, $header ) {
    239239    if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers']))
    240240        return '';
     
    256256 * @return string the response code. Empty string on incorrect parameter given.
    257257 */
    258 function wp_remote_retrieve_response_code(&$response) {
     258function wp_remote_retrieve_response_code( $response ) {
    259259    if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response']))
    260260        return '';
     
    273273 * @return string The response message. Empty string on incorrect parameter given.
    274274 */
    275 function wp_remote_retrieve_response_message(&$response) {
     275function wp_remote_retrieve_response_message( $response ) {
    276276    if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response']))
    277277        return '';
     
    288288 * @return string The body of the response. Empty string if no body or incorrect parameter given.
    289289 */
    290 function wp_remote_retrieve_body(&$response) {
     290function wp_remote_retrieve_body( $response ) {
    291291    if ( is_wp_error($response) || ! isset($response['body']) )
    292292        return '';
Note: See TracChangeset for help on using the changeset viewer.