diff options
author | petarpetkovic <ppetkovic@wikimedia.org> | 2017-11-09 12:13:16 +0100 |
---|---|---|
committer | Roan Kattouw <roan.kattouw@gmail.com> | 2017-11-30 10:29:58 -0800 |
commit | 62713be990a1cde6962e583165ba4480d9bab098 (patch) | |
tree | 235ff55841c4a1cbdca9300aa69ff749b6461277 /includes/DefaultSettings.php | |
parent | 1ec7e520d388b7cf23e116ac8f7a5a89ab613f9e (diff) | |
download | mediawikicore-62713be990a1cde6962e583165ba4480d9bab098.tar.gz mediawikicore-62713be990a1cde6962e583165ba4480d9bab098.zip |
Add new core tags
Add tags to types of edits that get automatic edit summaries:
- Making a page a redirect
- Changing redirect target
- Changing an existing redirect into a non-redirect
- Blanking of the page
- Removing nearly all (more than 90%) content
- Rolling back an edit
Bug: T167656
Bug: T73236
Change-Id: Ie7f637fcec5ee659c1086e28e8ba21f470c45160
Diffstat (limited to 'includes/DefaultSettings.php')
-rw-r--r-- | includes/DefaultSettings.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 3cd7ef181ab3..b623a343e847 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -6962,6 +6962,29 @@ $wgAllowCategorizedRecentChanges = false; $wgUseTagFilter = true; /** + * List of core tags to enable. Available tags are: + * - 'mw-contentmodelchange': Edit changes content model of a page + * - 'mw-new-redirect': Edit makes new redirect page (new page or by changing content page) + * - 'mw-removed-redirect': Edit changes an existing redirect into a non-redirect + * - 'mw-changed-redirect-target': Edit changes redirect target + * - 'mw-blank': Edit completely blanks the page + * - 'mw-replace': Edit removes more than 90% of the content + * - 'mw-rollback': Edit is a rollback, made through the rollback link or rollback API + * + * @var array + * @since 1.31 + */ +$wgSoftwareTags = [ + 'mw-contentmodelchange' => true, + 'mw-new-redirect' => true, + 'mw-removed-redirect' => true, + 'mw-changed-redirect-target' => true, + 'mw-blank' => true, + 'mw-replace' => true, + 'mw-rollback' => true +]; + +/** * If set to an integer, pages that are watched by this many users or more * will not require the unwatchedpages permission to view the number of * watchers. |