/** * Was the current request made by a known bot? * * @return boolean */ static function is_bot() { static $is_bot = null; if (is_null($is_bot)) { $is_bot = Jetpack_User_Agent_Info::is_bot_user_agent($_SERVER['HTTP_USER_AGENT']); } return $is_bot; }