[wp-trac] [WordPress Trac] #54429: Skip link focus fix is output twice in Twenty Twenty-One if SCRIPT_DEBUG is enabled

WordPress Trac noreply at wordpress.org
Fri Nov 12 16:06:50 UTC 2021


#54429: Skip link focus fix is output twice in Twenty Twenty-One if SCRIPT_DEBUG is
enabled
---------------------------+--------------------------
 Reporter:  westonruter    |       Owner:  westonruter
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  5.9
Component:  Bundled Theme  |     Version:  5.6
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:  javascript
---------------------------+--------------------------
Changes (by westonruter):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52147" 52147]:
 {{{
 #!CommitTicketReference repository="" revision="52147"
 Twenty Twenty-One: Prevent printing skip link focus fix when
 `SCRIPT_DEBUG` is enabled.

 An `else` statement was missing in
 `twenty_twenty_one_skip_link_focus_fix()`. See
 https://github.com/WordPress/twentytwentyone/pull/585/commits/ba83586ff1426fc4a0248f45d27ad0b4f5b7bbd4.

 Fixes #54429.
 }}}

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


More information about the wp-trac mailing list