Fix for WP installs with non-standard folder structures