WP_HTTP: Allow for cookies with "empty" values be sent, this affects sending cookies such as test=0, which would previously fail. Props mailnew2ster for initial patch. See #14184

git-svn-id: https://develop.svn.wordpress.org/trunk@21227 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2012-07-07 12:06:09 +00:00
parent ceec50af94
commit 28d82c9b04
1 changed files with 1 additions and 1 deletions

View File

@ -1590,7 +1590,7 @@ class WP_Http_Cookie {
* @return string Header encoded cookie name and value.
*/
function getHeaderValue() {
if ( empty( $this->name ) || empty( $this->value ) )
if ( ! isset( $this->name ) || ! isset( $this->value ) )
return '';
return $this->name . '=' . apply_filters( 'wp_http_cookie_value', $this->value, $this->name );