WordPress.org

Make WordPress Core

Changeset 17600


Ignore:
Timestamp:
04/05/11 06:41:51 (3 years ago)
Author:
dd32
Message:

explode always returns an array in this context. Props hakre. Fixes #16958

File:
1 edited

Legend:

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

    r17599 r17600  
    317317        $res = explode("\r\n\r\n", $strResponse, 2); 
    318318 
    319         return array('headers' => isset($res[0]) ? $res[0] : array(), 'body' => isset($res[1]) ? $res[1] : ''); 
     319        return array('headers' => $res[0], 'body' => isset($res[1]) ? $res[1] : ''); 
    320320    } 
    321321 
Note: See TracChangeset for help on using the changeset viewer.