diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 90e05e55be..179ea2fd06 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -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 );