External Libraries: Fix PHP 7.4 compatibility issue in the Requests library.

Moves https://github.com/rmccue/Requests/pull/370 into WordPress.

Previous [46258].

See #47746.

Built from https://develop.svn.wordpress.org/trunk@46416


git-svn-id: http://core.svn.wordpress.org/trunk@46214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Aaron Jorbin 2019-10-06 17:14:02 +00:00
parent 406dc81ebc
commit 0ea646a185
2 changed files with 6 additions and 1 deletions

View File

@ -288,6 +288,11 @@ class Requests_Cookie {
return $expiry_time; return $expiry_time;
case 'domain': case 'domain':
// Domains are not required as per RFC 6265 section 5.2.3
if (empty($value)) {
return null;
}
// Domain normalization, as per RFC 6265 section 5.2.3 // Domain normalization, as per RFC 6265 section 5.2.3
if ($value[0] === '.') { if ($value[0] === '.') {
$value = substr($value, 1); $value = substr($value, 1);

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-beta2-46415'; $wp_version = '5.3-beta2-46416';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.