diff --git a/includes/Hooks.php b/includes/Hooks.php index 1c03514960..5313d21831 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -148,7 +148,8 @@ class Hooks implements DifferenceEngineBeforeDiffTableHook { ->makeConfig( 'visualeditor' ); $output = RequestContext::getMain()->getOutput(); - // Return early if not viewing a diff of an allowed type. + // Return early if not viewing a diff of an allowed type or + // if the diff namespace is NS_SPECIAL (ref. T336582) if ( !ApiVisualEditor::isAllowedContentType( $veConfig, $diff->getTitle()->getContentModel() ) || $output->getActionName() !== 'view' || $diff->getTitle()->getNamespace() == NS_SPECIAL ) {