There's been some confusion since we updated the special page Special:MobileOptions.
If you are a third party (means: not Wikimedia) that uses MediaWiki and the MobileFrontend extension on your server, since MobileFrontend beta features are disabled by default (via $wgMFEnableBeta = false), the settings page is empty.
Load up an instance of MobileFrontend:
In LocalSettings.php add:
$wgMFEnableBeta = false; $wgMFAdvancedMobileContributions = false; $wgMFEnableFontChanger = [ 'base' => false, 'stable' => false ];
Click the hamburger menu - the settings page loads but there is nothing there!
Expected: The link should not have shown. The settings page should 404.
- If $wgMFEnableFontChanger , $wgMFEnableBeta and $wgMFAdvancedMobileContributions are all disabled for the current user, do not render the settings link in the menu
- If $wgMFEnableFontChanger , $wgMFEnableBeta and $wgMFAdvancedMobileContributions are all disabled for the current user, visiting Special:MobileOptions should 404.
Note: If $wgMFEnableFontChanger is enabled to keep things simple, we will still render the settings link for non-JS users.
Take a look at the code for wgMFEnableFontChanger to understand how our feature flags work and how to use includes/features/FeaturesManager.php .