Fix notice in WP_Http. Fixes #12316 props sivel.

git-svn-id: https://develop.svn.wordpress.org/trunk@13302 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-02-22 18:45:45 +00:00
parent c7e12e9265
commit 214d6b2ab0
1 changed files with 1 additions and 1 deletions

View File

@ -1733,7 +1733,7 @@ class WP_Http_Cookie {
if ( empty($pair) ) //Handles the cookie ending in ; which results in a empty final pair
continue;
list( $key, $val ) = explode( '=', $pair );
list( $key, $val ) = strpos( $pair, '=' ) ? explode( '=', $pair ) : array( $pair, '' );
$key = strtolower( trim( $key ) );
if ( 'expires' == $key )
$val = strtotime( $val );