[wp-trac] [WordPress Trac] #36018: Ensure autofocus for dynamically-created panels, sections, and controls
WordPress Trac
noreply at wordpress.org
Tue Mar 1 03:27:02 UTC 2016
#36018: Ensure autofocus for dynamically-created panels, sections, and controls
--------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.5
Component: Customize | Version: 4.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
--------------------------+--------------------------
Changes (by westonruter):
* keywords: => has-patch
* owner: => westonruter
* status: new => accepted
Comment:
See [attachment:36018.0.diff].
The PHP logic for calculating `$can_autofocus` is being over zealous in
its checks. If the panel, section, or control doesn't exist on the JS side
(due to not existing or due to a capability failure), there will not be
anything to focus on.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36018#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list