Requests_Cookie_Jar::normalize_cookie() WordPress Method
The Requests_Cookie_Jar::normalize_cookie() method is used to normalize a cookie name and value. This is useful when you want to set a cookie with a name that is not a valid cookie name, or when you want to set a cookie with a value that is not a valid cookie value.
Requests_Cookie_Jar::normalize_cookie( string|Requests_Cookie $cookie, $key = null ) #
Normalise cookie data into a Requests_Cookie
Parameters
- $cookie
(string|Requests_Cookie)(Required)
Return
Source
File: wp-includes/Requests/Cookie/Jar.php
public function normalize_cookie($cookie, $key = null) { if ($cookie instanceof Requests_Cookie) { return $cookie; } return Requests_Cookie::parse($cookie, $key); }
Expand full source codeCollapse full source codeView on TracView on GitHub