Page MenuHomePhabricator

Allow local wikis to set & customize a default block expiration length on Special:Block
Closed, InvalidPublic

Description

Similar to T202576:

Give local wiki admins (or editinterface permission holders) the ability to set the default block expiration on Special:Block.

We can also consider to make this more sophisticated, by changing the block length based on other parameters (username, block reason, etc.)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 22 2018, 7:59 PM
DannyS712 closed this task as Invalid.Aug 13 2019, 4:51 AM
DannyS712 added subscribers: daniel, DannyS712.

This is already an option. The default for all blocks is set at MediaWiki:ipb-default-expiry. T219126: Create a MediaWiki:ipb-default-expiry-anon for setting default anon. block durations separates this to allow a different default for IP blocks. I'm not sure when the customization was originally added, but the earliest reference was @daniel's commit https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/20715/ - see https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/20715/1/includes/specials/SpecialBlock.php at line 147