As part of refactoring in #190 the URL parsing has been altered, s.t. we pass a concatenation of host and path to wp_parse_url(). This results in the actual host not being parsed at all which raises a PHP warning.
Prefix the URL with double slashes (the protocol is not of interest here) to fix the parsing.
or even add port, query, etc. to make it complete, but we only process host and path in the very next lines, so a reduced, protocol-agnostic URL is sufficient here.
As part of refactoring in #190 the URL parsing has been altered, s.t. we pass a concatenation of host and path to
wp_parse_url()
. This results in the actual host not being parsed at all which raises a PHP warning.Prefix the URL with double slashes (the protocol is not of interest here) to fix the parsing.
We could use a full URL here, like
or even add port, query, etc. to make it complete, but we only process host and path in the very next lines, so a reduced, protocol-agnostic URL is sufficient here.
resolves #275