Follow up on Ie7f637fcec.
Bug: T167656
Change-Id: I763844e4bf7c3b5ca7a436cc4aa22a92f70f79d0
* - '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
+ * - 'mw-undo': Edit made through an undo link
*
* @var array
* @since 1.31
'mw-changed-redirect-target' => true,
'mw-blank' => true,
'mw-replace' => true,
- 'mw-rollback' => true
+ 'mw-rollback' => true,
+ 'mw-undo' => true,
];
/**
'mw-changed-redirect-target',
'mw-blank',
'mw-replace',
- 'mw-rollback'
+ 'mw-rollback',
+ 'mw-undo',
];
/**
$tags[] = $tag;
}
+ // Check for undo tag
+ if ( $undidRevId !== 0 && in_array( 'mw-undo', ChangeTags::getSoftwareTags() ) ) {
+ $tags[] = 'mw-undo';
+ }
+
// Provide autosummaries if summary is not provided and autosummaries are enabled
if ( $wgUseAutomaticEditSummaries && ( $flags & EDIT_AUTOSUMMARY ) && $summary == '' ) {
$summary = $handler->getAutosummary( $old_content, $content, $flags );
"tag-mw-replace-description": "Edits that remove more than 90% of the content of a page",
"tag-mw-rollback": "Rollback",
"tag-mw-rollback-description": "Edits that roll back previous edits using the rollback link",
+ "tag-mw-undo": "Undo",
+ "tag-mw-undo-description": "Edits that undo previous edits using the undo link",
"tags-title": "Tags",
"tags-intro": "This page lists the tags that the software may mark an edit with, and their meaning.",
"tags-tag": "Tag name",
"tag-mw-replace-description": "Description for \"replace\" change tag",
"tag-mw-rollback": "Change tag for rolling back an edit\n{{Identical|Rollback}}",
"tag-mw-rollback-description": "Description for \"rollback\" change tag",
+ "tag-mw-undo": "Change tag for undoing an edit",
+ "tag-mw-undo-description": "Description for \"undo\" change tag",
"tags-title": "The title of [[Special:Tags]].\n{{Identical|Tag}}",
"tags-intro": "Explanation on top of [[Special:Tags]]. For more information on tags see [[mw:Manual:Tags|MediaWiki]].",
"tags-tag": "Caption of a column in [[Special:Tags]]. For more information on tags see [[mw:Manual:Tags|MediaWiki]].",