https://mediawiki.org/wiki/Special:Code/pywikipedia/10251 added fix to cleanUpLinks in compat on 2012-05-24 , and it appears that fix was not made to core.
In May 2015, with c81ecba8, cleanUpLinks was disabled in compat , but it is still enabled in core.