diff --git a/includes/VisualEditorHooks.php b/includes/VisualEditorHooks.php index 84e9da6184..f0345fb587 100644 --- a/includes/VisualEditorHooks.php +++ b/includes/VisualEditorHooks.php @@ -658,7 +658,11 @@ class VisualEditorHooks { ]; // Config option for wikitext editing "deployed" state (opt-out) - if ( $config->get( 'VisualEditorEnableWikitext' ) ) { + if ( + $config->get( 'VisualEditorEnableWikitext' ) && + // TEMP Don't graduate if the Beta Feature switch is true. + !$veConfig->get( 'VisualEditorEnableWikitextBetaFeature' ) + ) { $preferences['visualeditor-newwikitext'] = [ 'type' => 'toggle', 'label-message' => 'visualeditor-preference-newwikitexteditor-enable',