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 Jun 23, 2021
1 parent ab6052f commit c66ef19
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 c66ef19

Please sign in to comment.