Requests_Cookie_Jar::normalize_cookie

Advertisement

Summery Summery

Normalise cookie data into a Requests_Cookie

Syntax Syntax

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

Parameters Parameters

$cookie

(string|Requests_Cookie) (Required)

Return Return

(Requests_Cookie)

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.