Last modified: 2011-03-07 03:53:07 UTC
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.
Apparently I don't know how to search for duplicates. Although I thought this used to work... *** This bug has been marked as a duplicate of bug 1319 ***