From e0286e327587e43d993f98643991a466b2077e82 Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Tue, 17 Oct 2023 14:05:01 +1100 Subject: [PATCH] Only suppress admin notices when JavaScript is enabled. --- packages/edit-widgets/src/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-widgets/src/style.scss b/packages/edit-widgets/src/style.scss index ae850c3bb78fee..72e68e06cfa7e8 100644 --- a/packages/edit-widgets/src/style.scss +++ b/packages/edit-widgets/src/style.scss @@ -56,7 +56,7 @@ body.js.widgets-php { // Don't display admin notices on the Widgets screen. // Needs !important because plugins may add inline styles to notices. -.widgets-php .notice { +.js .widgets-php .notice { display: none !important; }