Updated all instances of home_url() with esc_url()
Fixed search value, changed back to get_search_query, removed unnecessary check
Changed esc_url to esc_url_raw in redirect
Merge pull request #1067 from kalenjohnson/master

Updated all instances of home_url() with esc_url()