Merge "VisualEditorHooks: don't duplicate tag definitions"

This commit is contained in:
jenkins-bot 2020-02-07 17:15:20 +00:00 committed by Gerrit Code Review
commit e3f2bae73c

View file

@ -928,18 +928,13 @@ class VisualEditorHooks {
}
/**
* Implements the ListDefinedTags, ChangeTagsListActive, and
* ChangeTagsAllowedAdd hooks, to populate core Special:Tags with the change
* tags in use by VisualEditor.
* Implements the ListDefinedTags and ChangeTagsListActive hooks, to
* populate core Special:Tags with the change tags in use by VisualEditor.
*
* @param array &$tags Available change tags.
*/
public static function onListDefinedTags( &$tags ) {
$tags[] = 'visualeditor';
// No longer in active use:
$tags[] = 'visualeditor-needcheck';
$tags[] = 'visualeditor-switched';
$tags[] = 'visualeditor-wikitext';
$tags = array_merge( $tags, static::$tags );
}
/**