Last modified: 2014-02-12 23:35:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 45033 - wgCategories not populated on wgAction = edit
wgCategories not populated on wgAction = edit
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript
Depends on:
Blocks: javascript
  Show dependency treegraph
Reported: 2013-02-15 01:57 UTC by Danny B.
Modified: 2014-02-12 23:35 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Danny B. 2013-02-15 01:57:45 UTC
wgCategories is not populated on wgAction = edit

It is on view or submit, should be on edit as well.
Comment 1 Danny B. 2013-02-18 11:33:02 UTC
As it actually disrupts the consistency of the information about given page for gadgets, so they can't work properly on editing page, I'm increasing the importance back to normal.
Comment 2 db [inactive,noenotif] 2013-03-16 17:49:51 UTC
But on submit it contains only the categories from the section edited and not from the whole page.

That is the same problem as with the "templated used" section. On edit section this is also not added, because you have to parse the wikitext to get the templates. This is done on preview so the templates are shown.
Comment 3 This, that and the other (TTO) 2013-06-16 06:42:28 UTC
In case it adds any motivation, [[Wikipedia:Twinkle]] would like to use this information to provide a talkback opt-out capability for user talk pages. 

For now I will implement the opt-out using a lazy-loading API call when wgCategories is empty, but it would be nice to just be able to use wgCategories all the time and not have to query the API at all.

Note You need to log in before you can comment on or make changes to this bug.