Make WordPress Core


Ignore:
Timestamp:
02/21/2026 04:40:18 AM (7 months ago)
Author:
westonruter
Message:

XML-RPC: Account for parsed server URLs that do not specify host or scheme.

Developed in https://github.com/WordPress/wordpress-develop/pull/10916

Props bluefuton, tfrommen, chrispecoraro, drebbits.web, westonruter.
Fixes #64635, #40784.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/IXR/class-IXR-client.php

    r61457 r61713  
    3131            // Assume we have been given a URL instead
    3232            $bits = parse_url($server);
    33             $this->server = $bits['host'];
     33            $this->server = $bits['host'] ?? '';
    3434            $this->port = $bits['port'] ?? 80;
    3535            $this->path = $bits['path'] ?? '/';
Note: See TracChangeset for help on using the changeset viewer.