|Reported by:||Code-Ninja||Owned by:|
function search_for_folder has issues if you have a subfolder with the same name as the home folder.
I know this is not a common practice, but I have had several Wordpress users ask for help when they have not been able to preform updates. And after much checking I discovered the search_for_folder function gets confused under these situations and looks in the subfolder before the main folder. and gets a bit messed up.