X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/3d39054f012aefe514b3f5509e32f09fc4feda44..073c5ed6408e2f00dc1863b463fe205467628905:/wp-includes/Requests/IRI.php diff --git a/wp-includes/Requests/IRI.php b/wp-includes/Requests/IRI.php index 44a95171..8dc2fa28 100644 --- a/wp-includes/Requests/IRI.php +++ b/wp-includes/Requests/IRI.php @@ -688,10 +688,7 @@ class Requests_IRI { $isauthority = $this->iuserinfo !== null || $this->ihost !== null || $this->port !== null; if ($this->ipath !== '' && ( - $isauthority && ( - $this->ipath[0] !== '/' || - substr($this->ipath, 0, 2) === '//' - ) || + $isauthority && $this->ipath[0] !== '/' || ( $this->scheme === null && !$isauthority &&