Fix capability with WP-UserAgent

WP-UserAgent relies on global variable $comment to work. This will fix wrong useragent and content on pings.