diff --git a/includes/VisualEditorHooks.php b/includes/VisualEditorHooks.php index 06f68c2201..862194abda 100644 --- a/includes/VisualEditorHooks.php +++ b/includes/VisualEditorHooks.php @@ -118,8 +118,10 @@ class VisualEditorHooks { $veConfig->get( 'VisualEditorEnableDiffPage' ) || // Enabled as user beta feature $userOptionsLookup->getOption( $user, 'visualeditor-visualdiffpage' ) || + // Enabled by query param (deprecated) + $output->getRequest()->getVal( 'visualdiff' ) !== null || // Enabled by query param - $output->getRequest()->getVal( 'visualdiff' ) !== null + $output->getRequest()->getVal( 'diffmode' ) === 'visual' ) ) { return; }