[wp-trac] [WordPress Trac] #57791: Create function to output admin notices

WordPress Trac noreply at wordpress.org
Sun Sep 17 22:49:21 UTC 2023


#57791: Create function to output admin notices
-------------------------------------------------+-------------------------
 Reporter:  joedolson                            |       Owner:  joedolson
     Type:  task (blessed)                       |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.4
Component:  Administration                       |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback                                       |  administration
-------------------------------------------------+-------------------------

Comment (by joedolson):

 In [changeset:"56602" 56602]:
 {{{
 #!CommitTicketReference repository="" revision="56602"
 Administration: Move `tabindex="-1"` from notice to JS.

 In a handful of admin notices, a `tabindex` attribute is set so that JS
 can move focus to the notice `div`. Rather than adding `tabindex` to
 globally accepted attributes for `wp_kses_post()`, move the assignment of
 `tabindex` into the JS handlers that display those notices. The attribute
 is only relevant if JS is running, so there is no reason to add it in the
 original HTML notice.

 Follow up to [56408], [56409], [56410], [56518], [56570], [56571],
 [56572], [56573], [56576], [56589], [56590], [56597], [56599], [56600],
 [56601].

 Props costdev, joedolson.
 See #57791.
 }}}

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


More information about the wp-trac mailing list