From ec68f34159c85a480f39d569f98e5a789955b9f7 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Tue, 22 Jun 2021 15:01:03 +1000 Subject: [PATCH] Don't display admin notices on widgets screen. --- packages/edit-widgets/src/style.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/edit-widgets/src/style.scss b/packages/edit-widgets/src/style.scss index 8cb54eb3aca8e..c6a07b9b0356b 100644 --- a/packages/edit-widgets/src/style.scss +++ b/packages/edit-widgets/src/style.scss @@ -59,4 +59,10 @@ body.widgets-php { display: none; } +// Don't display admin notices on the Widgets screen. +// Needs !important because plugins may add inline styles to notices. +.widgets-php .notice { + display: none !important; +} + @include wordpress-admin-schemes();