Fix notice in WP_Http. Fixes #12316 props sivel.

git-svn-id: http://svn.automattic.com/wordpress/trunk@13302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-02-22 18:45:45 +00:00
parent a5a9f32b73
commit 5557d3e4f0
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 );