Make WordPress Core

Changeset 29849


Ignore:
Timestamp:
10/08/2014 05:20:01 AM (10 years ago)
Author:
dd32
Message:

Always cast the 'code' server response to an int, this provides consistency between both of the HTTP transports.
Previously cURL would return an int and Streams a numeric string.
Fixes #28887

File:
1 edited

Legend:

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

    r29848 r29849  
    525525        }
    526526
     527        // Cast the Response Code to an int
     528        $response['code'] = intval( $response['code'] );
     529
    527530        return array('response' => $response, 'headers' => $newheaders, 'cookies' => $cookies);
    528531    }
Note: See TracChangeset for help on using the changeset viewer.