[wp-trac] [WordPress Trac] #40301: New filter to disable auto-focus on the login screen
WordPress Trac
noreply at wordpress.org
Wed Mar 29 14:40:43 UTC 2017
#40301: New filter to disable auto-focus on the login screen
---------------------------------------+--------------------------------
Reporter: afercia | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version:
Severity: normal | Resolution:
Keywords: has-screenshots has-patch | Focuses: ui, accessibility
---------------------------------------+--------------------------------
Changes (by afercia):
* keywords: has-screenshots => has-screenshots has-patch
Comment:
Yep I've seen that ticket :) To me, it sounds more related to a (very
annoying) Chrome specific behaviour.
[attachment:40301.diff] adds a new filter which defaults to true. Using it
would be as simple as:
`add_action( 'enable_login_autofocus', '__return_false' );`
Also removes a space in a doc-block.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40301#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list