The overall method is soft deprecated, but we should separate deprecate calling without a User object, since that falls back to $wgUser. Thankfully most deployed callers already provide a User object
Steps
- Update deployed callers that don't provide a user
- SpamBlacklist (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SpamBlacklist/+/701198)
- ConfirmEdit (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ConfirmEdit/+/701199)
- AbuseFilter (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/AbuseFilter/+/701200)
- core (https://gerrit.wikimedia.org/r/c/mediawiki/core/+/701638)
- In 1.37, hard deprecate not providing a user (https://gerrit.wikimedia.org/r/c/mediawiki/core/+/702006)
- Create a separate task to remove the backwards-compatible code in 1.38 T285732: Remove $wgUser fallback in WikiPage::prepareContentForEdit()