mediawiki-extensions-Visual.../includes
Bartosz Dziewoński e1cdab7931 Fix conditions for 'visualeditor-autodisable' that depended on WMF config
Previously, this code relied on 'visualeditor-enable' being set to '1'
when VE was opt-out (so not using that preference). That default does
not make sense for a beta feature (which uses that preference), so WMF
config was overriding it to 0 when the beta feature mode was wanted.

Instead of making assumptions about the default values of preferences
that depend on whether beta feature mode is enabled, just check the
beta feature config.

I also added and updated comments documenting this preference.
Previously I never really understood what it was for, and I think
I figured it out now.

Bug: T340696
Change-Id: I45eef42939149ff5be63bf299c48ef70ee535e76
2023-06-29 01:25:59 +02:00
..
ApiParsoidTrait.php Stop collecting stats per wiki 2023-06-19 21:19:35 +00:00
ApiVisualEditor.php Always use the strict equality flag when using in_array 2023-06-07 13:26:10 +01:00
ApiVisualEditorEdit.php ApiVisualEditorEdit: Allow not returning the new revision content 2023-06-22 21:08:15 +00:00
DirectParsoidClient.php Bump requested Parsoid HTML version to 2.8.0 2023-05-31 12:12:59 -04:00
DualParsoidClient.php Pick ParsoidClient implementation based on etag. 2022-10-20 08:52:20 +00:00
Hooks.php Fix conditions for 'visualeditor-autodisable' that depended on WMF config 2023-06-29 01:25:59 +02:00
ParsoidClient.php ParsoidClient: Improve return type documentation for Phan 2022-12-15 00:00:41 +01:00
ServiceWiring.php Use PageRestHelperFactory 2022-11-19 21:21:11 +00:00
SpecialCollabPad.php Namespace rest of the extension 2022-03-14 22:27:15 +00:00
VisualEditorApiVisualEditorEditPostSaveHook.php Introduce VisualEditorApiVisualEditorPostSaveHook 2021-04-30 20:50:01 +02:00
VisualEditorApiVisualEditorEditPreSaveHook.php Allow hook implementations to modify params 2022-03-29 11:31:30 +00:00
VisualEditorBeforeEditorHook.php Remove 'Hook' from new hook's method name 2022-02-14 23:26:05 +00:00
VisualEditorDataModule.php Use new ResourceLoader namespace 2022-05-24 22:59:39 +00:00
VisualEditorDesktopArticleTargetInitModule.php Fix tab messages being changed wrong by JavaScript 2022-06-13 20:21:32 +02:00
VisualEditorHookRunner.php Allow hook implementations to modify params 2022-03-29 11:31:30 +00:00
VisualEditorParsoidClientFactory.php Remove some redundant PHPDoc comments 2023-04-24 21:11:26 +02:00
VRSParsoidClient.php ParsoidClient: Fix getPageHtml() $targetLanguage param inconsistencies 2022-09-26 22:52:31 +02:00