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:
parent
a5a9f32b73
commit
5557d3e4f0
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue