The SpecialPageFactory at https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/includes/specialpage/SpecialPageFactory_deprecated.php is soft deprecated, and includes some function that fall back to global $wgUser
Rather than hard deprecating those specific functions, the entire class should be hard deprecated, so that it can be removed in 1.36
Deployed calls to static SpecialPageFactory functions:
https://codesearch.wmflabs.org/deployed/?q=SpecialPageFactory%3A%3A&i=nope&files=%5C.php%24&repos=
- Timed media handler https://gerrit.wikimedia.org/r/c/573404
- Scribunto https://gerrit.wikimedia.org/r/c/573405
- GlobalUsage https://gerrit.wikimedia.org/r/c/573406
- DiscussionTools https://gerrit.wikimedia.org/r/c/573407
- CentralNotice https://gerrit.wikimedia.org/r/c/573408
- ArticlePlaceholder https://gerrit.wikimedia.org/r/c/573410
- FlaggedRevs https://gerrit.wikimedia.org/r/573411