From e60288c9e3ac520fafa434b2224960d136190482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Mon, 29 May 2023 03:36:21 +0200 Subject: [PATCH] Hide 'editnotice-notext' message in VE (and mobile apps) Bug: T337633 Change-Id: I142edff12492e80b9c281353e6a53efc3339159c (cherry picked from commit c37633bb8345febd7c92773165d7becb6bdd75b9) --- includes/ApiVisualEditor.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/includes/ApiVisualEditor.php b/includes/ApiVisualEditor.php index 2d99a8889a..2edac1bf9f 100644 --- a/includes/ApiVisualEditor.php +++ b/includes/ApiVisualEditor.php @@ -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,