[wp-trac] [WordPress Trac] #43703: Edit Category screen - Error shown in green and admin notice not dismissible.

WordPress Trac noreply at wordpress.org
Thu Apr 5 17:57:08 UTC 2018


#43703: Edit Category screen - Error shown in green and admin notice not
dismissible.
---------------------------------------+------------------------------
 Reporter:  birgire                    |       Owner:
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  Awaiting Review
Component:  Taxonomy                   |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch has-screenshots  |     Focuses:  administration
---------------------------------------+------------------------------

Comment (by birgire):

 [attachment:43703.diff] is a suggested patch that:

 - let's the admin notice have the {{{error}}} class (displayed as red) if
 the {{{$msg}}} index is 5 for not updated), else the {{{updated}}} class
 (displayed as green).
 - adds the {{{notice is-dismissible}}} classes to the admin notice.
 - escapes the message output.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43703#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list