From 89c0fb9d25e408e4a851623a019a0aa5f9d6ed15 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Mon, 26 Feb 2018 13:39:59 -0800 Subject: [PATCH] Follow-up e19092240: During the config cut-over, don't graduate 2017WTE In e19092240 the ability to configure the 2017WTE to be "graduated" out of beta and available to all. However, for a week of config cut-over, this is re-using a config switch which previously gated the beta feature, and so will be immediately available to all users until we put it back under beta when Ie13215bd is deployed. Oops. Change-Id: I1bc556849a6eb1e895f03412a9cb78002c8a0aee --- includes/VisualEditorHooks.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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',