Changeset 50842 for trunk/src/wp-includes/Requests/Cookie/Jar.php
- Timestamp:
- 05/11/2021 07:40:41 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/Requests/Cookie/Jar.php
r46586 r50842 69 69 * 70 70 * @param string $key Item key 71 * @return string Item value71 * @return string|null Item value (null if offsetExists is false) 72 72 */ 73 73 public function offsetGet($key) { … … 163 163 * @var Requests_Response $response 164 164 */ 165 public function before_redirect_check(Requests_Response &$return) {165 public function before_redirect_check(Requests_Response $return) { 166 166 $url = $return->url; 167 167 if (!$url instanceof Requests_IRI) { … … 169 169 } 170 170 171 $cookies = Requests_Cookie::parse_from_headers($return->headers, $url);172 $this->cookies = array_merge($this->cookies, $cookies);171 $cookies = Requests_Cookie::parse_from_headers($return->headers, $url); 172 $this->cookies = array_merge($this->cookies, $cookies); 173 173 $return->cookies = $this; 174 174 }
Note: See TracChangeset
for help on using the changeset viewer.