This issue is creating an associated MDL for an orphan TODO in tag/lib.php, which I came across while working on [
The above code is an extract from the tag_cleanup() function in tag/lib.php. It suggests we update the SQL here to support multiple types of tags, as soon as the need arises in the future. However for a superficial view of this issue, it appears to me that changing the appropriate section of the WHERE to the following, would address this issue:
WHERE tg.tagtype <> 'official'
The code was last touched by scyrma (Mathieu)