Skip to content

Commit

Permalink
Don't display admin notices on widgets screen. (#32877)
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines authored and youknowriad committed Jun 24, 2021
1 parent 19bbd3a commit 5378b79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/edit-widgets/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 5378b79

Please sign in to comment.