T205029: Drop legacy hard-deprecated code from MediaWiki ahead of MediaWiki 1.33 release || T232864: Drop legacy hard-deprecated code from MediaWiki ahead of MediaWiki 1.35 release
This is a list of potential deprecated code to drop. Not all of it will be dropped before 1.34 (and we'll move entries to a parallel ticket for 1.35). Found by manually looking for hard deprecations; soft-deprecated code isn't listed here (yet?).
- From 1.20
- Linker – calling Linker::link() with $query as a string rather than an array - Do T223010: Replace usages of Linker::link() in MediaWiki Core instead – https://gerrit.wikimedia.org/r/518322
- OutputPage – calling ::wrapWikiMsg() with an options parameter - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/509591
- SkinTemplate – Calling ::outputPage with a specified context [hard-deprecated in 1.25] 96acf994c0
- From 1.23
- SpecialPage::getTitle()
- Usages in extensions T223005
- SpecialPage::getTitle()
- From 1.24
- OutputPage – Calling ::addScriptFile with a path pointed at /w/skins/common or similar malformed request
- From 1.25
- Use of the UtfNormal class
- WikiPage – Calling ::prepareContentForEdit with a revisionid rather than a Revision object - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/511761
- ApiBase - getExamples()
- From 1.26
- ApiPageSet::getInvalidTitles()- per https://codesearch.wmflabs.org/search/?q=getInvalidTitles%5C(&i=nope&files=&repos=
- Constructing a Block object with multiple arguments rather than an "options" array - per https://codesearch.wmflabs.org/search/?q=new%20Block%5C(&i=nope&files=&repos=
- The UserRights hook - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/518324/
- From 1.27
- AuthManager migration stuff
- wfResetSessionID - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/518327/
- The ChangePasswordForm hook
- The UserLoadFromSession hook - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/518326/
- AuthManager migration stuff
- From 1.28
- The APIEditBeforeSave hook
- The UploadVerification hook
- UploadBase/UploadFromChunks::stashFileGetKey() and ::stashSession()
- Language
- initEncoding(), recodeForEdit(), and recodeInput() - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/507221
- ObjectCache::getMainWANInstance()
- ObjectCache::getMainStashInstance()
- From 1.29
- A bunch of stuff in the Action API
- The UsageException (outside of an ApiUsageException)
- DeferredUpdates::setImmediateMode()
- EditPage::submit()
- User
- ::getGroupPage() https://gerrit.wikimedia.org/r/c/mediawiki/core/+/506974
- ::makeGroupLinkHTML() https://gerrit.wikimedia.org/r/c/mediawiki/core/+/506974
- ::makeGroupLinkWiki() https://gerrit.wikimedia.org/r/c/mediawiki/core/+/507198
- From 1.30
- BufferingStatsdDataFactory::getBuffer()
- Title::escapeFragmentForURL()
- ParserOptions::legacyOptions() - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/495406
- Special:EmailUser::getTarget() or ::validateTarget() without specifying the sending user