Jforrester has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/84433


Change subject: Update how VisualEditor's experimental config works
......................................................................

Update how VisualEditor's experimental config works

Previously, we used $wmgVisualEditorExperimental to decide whether a
wiki would have VisualEditor's "experimental" code enabled for all,
or disabled for all. With the forthcoming "BetaFeatures" system, we
won't be able to set it in the old way:

  $wgVisualEditorEnableExperimentalCode = true;

… and instead will use a user preference that users can opt-in to
pick on a per-user basis. Thus, to set this for all users on a given
wiki, we need instead to use:

  $wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;

Change-Id: Id1a977ee8364b0403b5f86c9f0337f17920e1b0d
---
M wmf-config/CommonSettings.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/33/84433/1

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 1884235..a2e483f 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -1910,7 +1910,7 @@
                $wgHiddenPrefs[] = 'visualeditor-betatempdisable';
        }
        if ( $wmgVisualEditorExperimental ) {
-               $wgVisualEditorEnableExperimentalCode = true;
+               $wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;
        }
        // Bug 50000 - to remove once roll-out is complete.
        if ( $wmgVisualEditorDisableForAnons ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/84433
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id1a977ee8364b0403b5f86c9f0337f17920e1b0d
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jforrester <jforres...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to