Add option for confirmation prompts on rollbacks
authorTim Eulitz <tim.eulitz@wikimedia.de>
Mon, 4 Feb 2019 15:32:52 +0000 (16:32 +0100)
committerTim Eulitz <tim.eulitz@wikimedia.de>
Mon, 4 Feb 2019 16:04:46 +0000 (17:04 +0100)
By default this option will be enabled in core, however, the option will
be overriden by a separate commit to mediawiki-config where it will be
disabled for all wikis for now.

Bug: T215019
Change-Id: I73f060fc954abb6ec02238b16c8598dd6ebd4ae4

includes/DefaultSettings.php

index 00ccc96..31b0988 100644 (file)
@@ -9020,6 +9020,15 @@ $wgActorTableSchemaMigrationStage = SCHEMA_COMPAT_OLD;
  */
 $wgEnablePartialBlocks = false;
 
+/**
+ * Enable confirmation prompt for rollback actions to prevent accidental rollbacks.
+ * May be disabled to reduce number of clicks needed to perform rollbacks.
+ *
+ * @since 1.33
+ * @var bool
+ */
+$wgEnableRollbackConfirmationPrompt = true;
+
 /**
  * Enable stats monitoring when Block Notices are displayed in different places around core
  * and extensions.