After "autoreviewer" was added to $wgRestrictionLevels on ptwiki (see bug 39652), a user noticed[1] some parts of MW interface do not take this new value into account. Digging into the code, I found these problems so far:
- On Title.php, isSemiProtected() only consider the level "autoconfirmed"[2]
- (Consequently) On EditPage.php, showTextbox1() do not add CSS classes for other semiprotection levels [3]
- On Linker.php, formatTemplates() only consider messages [[MediaWiki:template-semiprotected]] and [[MediaWiki:template-protected]], instead of using a convention such as "template-level-<a value from $wgRestrictionLevels here>", similar to the way "MediaWiki:Protect-level-*" and "MediaWiki:Restriction-level-*" works [4][5][6]
There may be other places where the new value is not working either...
[1] https://pt.wikipedia.org/w/index.php?diff=33433428&diffonly=1
[2] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/Title.php;h=a20367dcefb1786bc24a570e6bb983daf293f7ef;hb=HEAD#l2384
[3] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/EditPage.php;h=ad6c98d1108ef4228bf2b02864755936f0725925;hb=HEAD#l2482
[4] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/Linker.php;h=05a9905669f95fcb573f851da6d58bad8a340161;hb=HEAD#l1858
[5] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/specials/SpecialProtectedpages.php;h=74ed5378e4143644cced27858c4248ccbc0b5f51;hb=HEAD#l261
[6] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/ProtectionForm.php;h=e844a1e9ab4dac5a73bd16e0e86ce7f58da470d2;hb=HEAD#l582
Version: 1.21.x
Severity: normal