diff --git a/includes/Hooks/ParserHooks.php b/includes/Hooks/ParserHooks.php index 102f4c871..bcd54defa 100644 --- a/includes/Hooks/ParserHooks.php +++ b/includes/Hooks/ParserHooks.php @@ -86,9 +86,14 @@ class ParserHooks implements * @inheritDoc */ public function onParserOutputPostCacheTransform( $parserOutput, &$text, &$options ): void { + // TEMPORARY for wikitech visualdiff testing: Pin this to false so we + // always render reply links (for anon users as well) to match current + // behavior which also lets us run a truer visual diff with DT. + // // NOTE: This is a temporary proxy for 'isPreview' flag in ParserOptions. // It is not clear whether 'editsectionEditLinks' is disabled only for previews. - $isPreview = empty( $options['enableSectionEditLinks'] ); + // $isPreview = empty( $options['enableSectionEditLinks'] ); + $isPreview = false; // We want to run this hook only on Parsoid HTML for now. // (and leave the onParserAfterTidy handler for legacy HTML).