Hi,
I have an extension called BugSquish, which I have been happily using on MediaWiki 1.6.10 for quite a long time. I am also aware of other people using it on later versions, but cannot cite specific version numbers where it is known to work. The code works by performing a regex replace on code passed into the ParserAfterStrip hook function that I have set up, to strike out links to bugs that have been marked as fixed.
On MW 1.6 this correctly handles <nowiki> and <pre> tags, in that text within these tags is not parsed by the extension.
On MW 1.14 and above the code within the <nowiki> tags is parsed and ends up having the regex applied to it, though it is subsequently rendered as plain text by the engine (so the page ends up being filled with HTML/CSS gobbledygook, rendered literally).
I am not sure at which revision this change took place.
First question: Is this a bug or a deliberate change in functionality, or have I been mis-using the hook all along? Second question: Assuming this is not a bug, how should I rewrite the code to make it behave as it used to?
The current code for the extension is available here, if you want to test: http://www.kennel17.co.uk/testwiki/BugSquish
Cheers,
- Mark Clements (HappyDog)