mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +00:00
Merge "VisualEditorHooks: don't duplicate tag definitions"
This commit is contained in:
commit
e3f2bae73c
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue