Make WordPress Core

Changeset 46416


Ignore:
Timestamp:
10/06/2019 05:12:23 PM (5 years ago)
Author:
jorbin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/Requests/Cookie.php

    r37428 r46416  
    289289
    290290            case 'domain':
     291                // Domains are not required as per RFC 6265 section 5.2.3
     292                if (empty($value)) {
     293                    return null;
     294                }
     295
    291296                // Domain normalization, as per RFC 6265 section 5.2.3
    292297                if ($value[0] === '.') {
Note: See TracChangeset for help on using the changeset viewer.