Since it is no longer going to be removed in T250638: Replace uses and hard deprecate WikiPage::doEditContent and PageUpdater::getStatus, and that task appears to have concluded that it should be un-deprecated, the use of $wgUser if a user isn't passed needs to be remedied
We decided to do this by replacing the method with a similar one that requires a user to be provided - we want to update callers to the new method and then hard deprecate and later remove the old one
public function doEditContent( Content $content, $summary, $flags = 0, $originalRevId = false, Authority $performer = null, $serialFormat = null, $tags = [], $undidRevId = 0 )
public function doUserEditContent( Content $content, Authority $performer, $summary, $flags = 0, $originalRevId = false, $tags = [], $undidRevId = 0 )
This new method was added in 1.36, so extensions that are updated to call it need to either require 1.36+ or newer, or have logic to vary which method is called based on the version.
To update callers:
- Translate (MLEB*) (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Translate/+/701271/ and https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Translate/+/702007)
- Wikibase (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/701243)
- Flow (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Flow/+/701237)
- MassMessage (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MassMessage/+/701245)
- Echo (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Echo/+/701235)
- CentralNotice (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CentralNotice/+/701234)
- SecurePoll (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/701233)
- FlaggedRevs (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/FlaggedRevs/+/701232)
- LiquidThreads (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/LiquidThreads/+/701231)
- Babel (MLEB*) (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Babel/+/701272/)
- CheckUser (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CheckUser/+/701230)
- FileImporter (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/FileImporter/+/701229)
- GWToolset (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GWToolset/+/701228)
- NewUserMessage (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/NewUserMessage/+/701266)
- ORES (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ORES/+/701227)
- PageTriage (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/PageTriage/+/701226)
- Scribunto (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Scribunto/+/701267)
- SpamBlacklist (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SpamBlacklist/+/701205)
- TemplateStyles (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/TemplateStyles/+/701268)
- UploadWizard (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/UploadWizard/+/701269)
- WikimediaMaintenance (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikimediaMaintenance/+/701270)
- Core callers (https://gerrit.wikimedia.org/r/c/mediawiki/core/+/701277)
Then
- 1.37 - hard deprecate WikiPage::doEditContent (https://gerrit.wikimedia.org/r/c/mediawiki/core/+/701725)
- Create a separate task for the removal in 1.38 (T286139)
MLEB*: As a reminder: extensions in the "MediaWiki Language Extension Bundle" need to continue supporting 1.35, so we can't just bump the required version of mediawiki.