I’m experiencing the same issue with WordPress 4.6.1 now.
I investigated that the theme.php sets up it’s host path for some script including:
$admin_origin = parse_url( admin_url() );
$home_origin = parse_url( home_url() );
$cross_domain = ( strtolower( $admin_origin[ 'host' ] ) != strtolower( $home_origin[ 'host' ] ) );
As you see they are applying the php function parse_url
to there intern home_url
function. This will return only a path (for the admin_url
: /wp-admin/
) and is empty for home_url
.
I found out, that the functions work correctly and determined the correct url’s, but then they are passing this to the home_url
filter and I think that the plugin hooks in there and will remove the host (to make it relative) but this will break later working with the path (e.g. with parse_url
).
-
This reply was modified 8 years, 5 months ago by
jdoubleu. Reason: code block update