mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-24 02:38:40 +00:00
Stop showing the "Editing tabs" popup some time after SET switch
If someone has edited before the switch (2016-ish), never edited since then, and try to edit again now, it's probably no longer helpful to show them a popup dialog about a change that happened 5 years ago. The immediate motivation for this, though, is T273189. We discovered a bug with the preferences that, among other issues, caused this dialog to not be shown in some cases where it should have been, and fixing the bug now would cause it to be shown the on the next edit attempt. If someone has edited before the switch (2016-ish), *and* edited since then, and try to edit again now, it's definitely not helpful at all to show them a popup dialog about a change that happened 5 years ago. Bug: T273189 Change-Id: I4b5a3d8dbdf1c853eb39fcfc85a9fe87a4db0f21
This commit is contained in:
parent
b91c8647fe
commit
ef8e7945cc
|
@ -136,6 +136,9 @@
|
|||
"VisualEditorSingleEditTabSwitchTime": {
|
||||
"value": 20160101000000
|
||||
},
|
||||
"VisualEditorSingleEditTabSwitchTimeEnd": {
|
||||
"value": 20210101000000
|
||||
},
|
||||
"VisualEditorSkinToolbarScrollOffset": {
|
||||
"value": []
|
||||
},
|
||||
|
|
|
@ -446,6 +446,7 @@ class VisualEditorHooks {
|
|||
|
||||
if (
|
||||
$config->get( 'VisualEditorUseSingleEditTab' ) &&
|
||||
wfTimestampNow() < $config->get( 'VisualEditorSingleEditTabSwitchTimeEnd' ) &&
|
||||
$user->isRegistered() &&
|
||||
!$user->getOption( 'visualeditor-autodisable' ) &&
|
||||
!$user->getOption( 'visualeditor-betatempdisable' ) &&
|
||||
|
|
Loading…
Reference in a new issue