Closed hogash closed 7 months ago
I suspect both may be needed, as parse_url()
may return false
.
What's causing the $url
parameter to be false
?
What's causing the
$url
parameter to befalse
?
I don't know I didn't noticed a specific pattern except sometimes when visiting Customizer (although I'm not entirely sure).
I just added this below to see the full $request and backtrace. Will keep you updated.
if( ! is_string($request['url']) ){
error_log(var_export( [
$request,
wp_debug_backtrace_summary(),
], true));
}
Did you find anything from this @hogash ?
Did you find anything from this @hogash ?
No, I didn't. Let's close the issue for the moment and get back in case that error returns. Thanks!
Hey!
I'm sometimes getting this error below, however I'm not entirely sure when. I believe when I'm inside Customizer.
Looking at the code, I believe instead of..
$host = (string) parse_url( $request['url'], PHP_URL_HOST );
It should be..
$host = parse_url( (string) $request['url'], PHP_URL_HOST );