Merge "Always enable visual diff when diffmode=visual"

This commit is contained in:
jenkins-bot 2022-01-26 16:19:09 +00:00 committed by Gerrit Code Review
commit b94265acc3

View file

@ -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;
}