diff --git a/VisualEditor.hooks.php b/VisualEditor.hooks.php index d4df34b9d1..b8b34403aa 100644 --- a/VisualEditor.hooks.php +++ b/VisualEditor.hooks.php @@ -367,6 +367,13 @@ class VisualEditorHooks { */ } + /** + * Implements the ListDefinedTags and ChangeTagsListActive hooks, to populate + * core Special:Tags with the change tags in use by VisualEditor. + * + * @param array $tags + * @return bool true + */ public static function onListDefinedTags( &$tags ) { $tags[] = 'visualeditor'; $tags[] = 'visualeditor-needcheck'; diff --git a/VisualEditor.php b/VisualEditor.php index e38c372627..e84c63679d 100644 --- a/VisualEditor.php +++ b/VisualEditor.php @@ -80,6 +80,7 @@ $wgHooks['DoEditSectionLink'][] = 'VisualEditorHooks::onDoEditSectionLink'; $wgHooks['GetBetaFeaturePreferences'][] = 'VisualEditorHooks::onGetBetaPreferences'; $wgHooks['GetPreferences'][] = 'VisualEditorHooks::onGetPreferences'; $wgHooks['ListDefinedTags'][] = 'VisualEditorHooks::onListDefinedTags'; +$wgHooks['ChangeTagsListActive'][] = 'VisualEditorHooks::onListDefinedTags'; $wgHooks['MakeGlobalVariablesScript'][] = 'VisualEditorHooks::onMakeGlobalVariablesScript'; $wgHooks['RedirectSpecialArticleRedirectParams'][] = 'VisualEditorHooks::onRedirectSpecialArticleRedirectParams';