Hard deprecated in 1.35
All known callers already pass a user: https://codesearch.wmflabs.org/search/?q=-%3EinsertProtectNullRevision%5C(&i=nope&files=&repos=
Article::insertProtectNullRevision can be called without a user, and then pass that null user on. However, Article::insertProtectNullRevision is itself hard deprecated (see subtask), and so can be removed alongside removal of the $wgUser fallback
Description
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T11968 Reduce use of global and public variables | |||
| Open | None | T159283 Deprecate non-configuration globals | |||
| Resolved | MGChecker | T159299 Deprecate and remove $wgUser | |||
| Resolved | DannyS712 | T267861 [GOAL] Emit deprecation warnings reading from $wgUser | |||
| Resolved | MGChecker | T243708 Mediawiki core needs uses of global $wgUser removed | |||
| Resolved | DannyS712 | T245331 Remove core fallbacks to global $wgUser [1.36] | |||
| Invalid | None | T245705 Remove support for calling WikiPage::insertProtectNullRevision functions without passing a user object | |||
| Resolved | DannyS712 | T245706 Hard deprecate Article::insertProtectNullRevision |
Event Timeline
Comment Actions
The entire method is now hard deprecated - see T250249: WikiPage::insertProtectNullRevision returns Revision objects