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
This commit is contained in:
James D. Forrester 2018-02-26 13:39:59 -08:00
parent 9a5fb6c880
commit 89c0fb9d25

View file

@ -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',