W3cubDocs

/WordPress

Requests_Cookie::normalize()

Normalize cookie and attributes

Return

(boolean) Whether the cookie was successfully normalized

Source

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