Suppress notice from parse_url not returning path for WP installs in root directory. Thanks @justnorris.