[wp-trac] [WordPress Trac] #54421: Deprecate skip link focus fix

WordPress Trac noreply at wordpress.org
Thu Nov 11 17:54:07 UTC 2021


#54421: Deprecate skip link focus fix
-------------------------------------------------+-------------------------
 Reporter:  westonruter                          |      Owner:  (none)
     Type:  enhancement                          |     Status:  new
 Priority:  low                                  |  Milestone:  Awaiting
                                                 |  Review
Component:  Bundled Theme                        |    Version:
 Severity:  trivial                              |   Keywords:
  Focuses:  accessibility, javascript,           |
  performance                                    |
-------------------------------------------------+-------------------------
 Six of the core themes have the skip link focus fix which was needed
 specifically for IE11. However, now that IE11 market share is at ~0.5%, it
 seems a waste to include the script on every single page even when barely
 any visitor will benefit from it.

 Note that the WordPress announcement post for
 [https://wordpress.org/news/2021/05/dropping-support-for-internet-
 explorer-11/ Dropping support for Internet Explorer 11] does say that no
 changes to bundled themes would be done as part of the plan, including:

 > No code related to IE11 support (or any other browser that may have been
 supported when each theme was released) will be removed from default
 themes.

 Nevertheless, I think an exception can be made here given only a fraction
 of IE11 users (which is already a very small fraction of users) would also
 need this focus fix.

 So I suggest we:

 1. Remove the `add_action()` call to print the script at
 `wp_print_footer_scripts`.
 2. We add a `@deprecated` tag to the `*_skip_link_focus_fix` functions.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54421>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list