Make WordPress Core

Ticket #16958: 16958.patch

File 16958.patch, 566 bytes (added by hakre, 14 years ago)

first member of array will always be set by the explode command.

  • wp-includes/class-http.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    304304        function processResponse($strResponse) {
    305305                $res = explode("\r\n\r\n", $strResponse, 2);
    306306
    307                 return array('headers' => isset($res[0]) ? $res[0] : array(), 'body' => isset($res[1]) ? $res[1] : '');
     307                return array('headers' => $res[0], 'body' => isset($res[1]) ? $res[1] : '');
    308308        }
    309309
    310310        /**