Requests_Cookie_Jar::normalize_cookie( string|Requests_Cookie $cookie,  $key = null )

Normalise cookie data into a Requests_Cookie


Description Description


Parameters Parameters

$cookie

(string|Requests_Cookie) (Required)


Top ↑

Return Return

(Requests_Cookie)


Top ↑

Source 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);
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.