Manual talk:$wgUser
Add topicAppearance
Latest comment: 7 years ago by This, that and the other in topic In most cases $wgUser should not be used in new code.
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
In most cases $wgUser should not be used in new code.
[edit]Please, tell me more. Why not? What to use instead? @This, that and the other TespSam (talk) 16:03, 15 March 2018 (UTC)
- Virtually all hooks now give you a User object as a parameter. If the hook you require does not have this parameter, and you think it should, then consider filing a Phabricator task. This, that and the other (talk) 00:43, 16 March 2018 (UTC)