Uses
Uses | Description |
---|---|
wp-includes/Requests/Cookie.php: Requests_Cookie::normalize_attribute() | Parse an individual cookie attribute |
Normalize cookie and attributes
(boolean) Whether the cookie was successfully normalized
File: wp-includes/Requests/Cookie.php
public function normalize() { foreach ($this->attributes as $key => $value) { $orig_value = $value; $value = $this->normalize_attribute($key, $value); if ($value === null) { unset($this->attributes[$key]); continue; } if ($value !== $orig_value) { $this->attributes[$key] = $value; } } return true; }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_cookie/normalize