Page MenuHomePhabricator

Deprecate $wgLang
Open, Needs TriagePublic

Description

See parent task. This is a bug against core, bugs for extensions, if needed, should be subtasks of this one.

Event Timeline

Krinkle added a subscriber: Krinkle.

One of the more prominent uses in core comes from ContentHandler, seen in most page views when enabling verbose logging:

[wfDebug] [DEBUG] Unstubbing $wgLang on call of $wgLang::unstub from ContentHandler->getPageLanguage

Change 598143 had a related patch set uploaded (by Krinkle; owner: DannyS712):
[mediawiki/core@master] ParserOptionsTest: Rename non-global variable $wgLang

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

Change 598143 merged by jenkins-bot:
[mediawiki/core@master] ParserOptionsTest: Rename non-global variable $wgLang

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