Page MenuHomePhabricator

How to use MediaWiki:Common.json? (Delete "common.json" i18n message?)
Closed, ResolvedPublic

Description

The page MediaWiki:Common.json was introduced in core with change 408940 (linked to T76554). The default text of the page is /* Any JSON here will be loaded for all users on every page load. */. However, I have tested by putting some actual JSON content in my test wiki's MediaWiki:Common.json, and there is no apparent way of accessing what I put there – in other words, it doesn't appear it is loading on every page load. Looking through all the files that were changed in that commit, I can't see anything that actually exposes Common.json content either (I don't know if there are any subsequent commits that have added this, though). None of the major wikis I've checked (mediawikiwiki, metawiki, commonswiki, enwiki) make any use of the page either.

So: How can I use content that I put into Common.json?

Event Timeline

It doesn't do anything, it's just like any other JSON page, something else has to explicitly load it. We should probably delete the "common.json" i18n message.

Aklapper renamed this task from How to use MediaWiki:Common.json? to How to use MediaWiki:Common.json? (Delete "common.json" i18n message?).Oct 19 2022, 9:07 AM

Change 963098 had a related patch set uploaded (by Bartosz Dziewoński; author: 沈澄心):

[mediawiki/core@master] Cleanup nonexistent "custom JSON"

https://gerrit.wikimedia.org/r/963098

Change 963098 merged by jenkins-bot:

[mediawiki/core@master] Cleanup nonexistent "custom JSON"

https://gerrit.wikimedia.org/r/963098

matmarex assigned this task to Dringsim.

Resolved by deleting the message (it was never used).