replaced wp_get_referer() to $_SERVER['HTTP_REFERER']

wp_get_referer() didn't captured referer from outside e.g:
community.topcoder.com