Fixed issues when WordPress is installed into a sub-directory or as a Git
Submodule