Page MenuHomePhabricator

wgOut rendered different in preview
Closed, InvalidPublic

Description

Author: karuna805

Description:
I have an extension running on a parser hook. Changes to $wgOut are shown when previewing the revision, but not on the actual page.

I have a really easy way to repeat the bug using the ImageMap extension (the bug itself is not in ImageMap)-

-install the ImageMap extension
-modify ImageMap_body.php

-find the line # Determine whether a "magnify" link is present
-just before this line, add two lines of code, so the three together are:

global $wgOut;
$wgOut->addMeta ('test', 'test');

Determine whether a "magnify" link is present

Edit a page with an ImageMap on it. The meta tag gets added when previewing the page but not on the page itself.


Version: 1.17.x
Severity: normal
OS: Linux

Details

Reference
bz25515

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:18 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz25515.
bzimport added a subscriber: Unknown Object (MLST).

If you are using $wgOut in parser function (which you shouldn't), it doesn't get cached with the parsed article content.