SpecialMute::getFormFields checks for whether a user has an email address attached to their account. However, this check calls User::getEmailAuthenticationTimestamp which is only applicable if the wiki has email authentication enabled.
Steps to replicate the issue
- Set-up a wiki with $wgEmailAuthentication = false;
- Add an email to your account
- Load Special:Mute
What happens?:
The following error is displayed:
What should have happened instead?:
The check should ignore the lack of email confirmation timestamp as $wgEmailAuthentication is set to false, and the Special:Mute page should be displayed
Software version
MediaWiki 1.42.0-alpha (852bb4f) 05:58, 5 February 2024