Noticed in DynamicPageList extension. Bug appeared sometime after that extension was written, but before 1.15 was released (since 1.15 is earliest release I had installed to test with).
Consider the following code:
$wgHooks['ParserFirstCallInit'][] = 'testprefunc';
function testprefuncrender () {
return "This should be raw html! See <blink>no filtering</blink>.\n Oh look, there's a <pre>";
}
function testprefunc ($parser) {
$parser->setHook( 'pretest', 'testprefuncrender' ); return true;
}
When you put <pretest/> in a wiki page, this inserts the following html:
<p>This should be raw html! See <blink>no filtering</blink>.
</p>
<pre>Oh look, there's a <pre>
</pre>
Expected behaviour, at least what makes sense to me, would be for the parser to out the return value of the function verbatim, not inserting <pre> or <p> tags. I'm pretty sure that was what the behaviour used to be.
Version: 1.18.x
Severity: normal