[wp-trac] [WordPress Trac] #64064: Twenty Ten: remove auto-focus script from 404 template

WordPress Trac noreply at wordpress.org
Tue Nov 25 10:39:41 UTC 2025


#64064: Twenty Ten: remove auto-focus script from 404 template
---------------------------+----------------------------
 Reporter:  sabernhardt    |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  7.0
Component:  Bundled Theme  |     Version:  3.0
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  accessibility
---------------------------+----------------------------

Comment (by ravichudasama01):

 I tested this change on Twenty Ten’s 404 template, and the results are
 below:-

 Before the patch:
 The search field grabbed focus immediately on page load, which skipped
 past the “Not Found” heading and intro text. Keyboard users and screen-
 reader users would land straight inside the search box with no context.

 Please refer below screenshot for before results:-
 https://prnt.sc/P3EL_M92Xs00

 After applying the patch:
 The autofocus script is removed, and the page now loads in a much more
 natural and accessible reading order.

 Please refer below screenshot for after results:-
 https://prnt.sc/gEeurgtuLU3V

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


More information about the wp-trac mailing list