[wp-trac] [WordPress Trac] #28650: Allow Customizer elements (controls, sections, and panels) to be deep-linked
WordPress Trac
noreply at wordpress.org
Sun Oct 26 21:59:30 UTC 2014
#28650: Allow Customizer elements (controls, sections, and panels) to be deep-
linked
-------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.1
Component: Customize | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
-------------------------+--------------------------
Changes (by westonruter):
* keywords: needs-patch => has-patch
Comment:
In [attachment:28650.partial.diff], a patch that builds upon with in
#28709:
* Export to JS the Customizer construct being deep-linked
* Short-circuit `embed()` if panel/section/control already embedded
* Add `deferred.ready` to `Panel`, `Section`, `Control`; embed when
initialized
* Focus on a panel/section/control when ready
* Wait to autofocus on panel/section/control until element is embedded
and preview has loaded. Use an animation of 0 until the preview loads.
* When focusing on panel/section/control, scroll into view
* Use `?autofocus[section]=colors` pattern for query param
Now you can direct link to the widgets panel from the widgets admin page
via: {{/wp-admin/customize.php?autofocus[panel]=widgets}}
@celloexpressions: Caveat being that the panel positioning is currently a
bit finicky, especially regarding the `margin-top` and scroll position.
But that's really an issue in #28709.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28650#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list