Reported on enwiki at https://en.wikipedia.org/wiki/MediaWiki_talk:Protect-text#Confirm_protection_dropdowns
Gerrit change 153302 inadvertently changed the ordering of the levels in $wgRestrictionLevels for wikis not using the default levels. For example, on enwiki the array was coming out as
array(5) {
[0]=> string(14) "templateeditor" [1]=> string(0) "" [2]=> string(13) "autoconfirmed" [3]=> string(5) "sysop" [4]=> string(12) "superprotect"
}
The protection form displays the protection levels in the same order, while admins on-wiki would expect to see "Allow all users" ('') first and "Allow only template editors and admins" ('templateeditor') third.
To get the proper ordering, it looks like we'll have to specify the entire array rather than using the '+' syntax in InitialiseSettings.php.
Version: wmf-deployment
Severity: normal