public static function list_comment_statuses($refresh = false) { if ($refresh || empty(self::$comment_status_list)) { self::$comment_status_list = DB::get_keyvalue('SELECT id, name FROM {commentstatus};'); } self::$comment_status_list = Plugins::filter('list_comment_statuses', self::$comment_status_list); return self::$comment_status_list; }