remove a usage of wp_get_referer