Hide 'editnotice-notext' message in VE (and mobile apps)

Bug: T337633
Change-Id: I142edff12492e80b9c281353e6a53efc3339159c
This commit is contained in:
Bartosz Dziewoński 2023-05-29 03:36:21 +02:00 committed by Bartosz Dziewoński
parent 64fec813c3
commit c37633bb83

View file

@ -303,9 +303,14 @@ class ApiVisualEditor extends ApiBase {
} else {
$notices = $this->introMessageBuilder->getIntroMessages(
IntroMessageBuilder::LESS_FRAMES,
// This message was not shown by VisualEditor before it was switched to use IntroMessageBuilder,
// and it may be unexpected to display it now, so skip it.
[ 'editpage-head-copy-warn' ],
[
// This message was not shown by VisualEditor before it was switched to use
// IntroMessageBuilder, and it may be unexpected to display it now, so skip it.
'editpage-head-copy-warn',
// This message was not shown by VisualEditor previously, and on many Wikipedias it's
// technically non-empty but hidden with CSS, and not a real edit notice (T337633).
'editnotice-notext',
],
$localizerWithTitle,
$title->toPageIdentity(),
$revision,