[wp-trac] [WordPress Trac] #27993: Support for contexts in the Customizer
WordPress Trac
noreply at wordpress.org
Tue Jul 29 08:45:43 UTC 2014
#27993: Support for contexts in the Customizer
-----------------------------+-----------------------------
Reporter: danielbachhuber | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.0
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, javascript
-----------------------------+-----------------------------
Changes (by kovshenin):
* keywords: has-patch commit => has-patch
Comment:
Replying to [comment:25 lancewillett]: Looks like the problem here is that
Jetpack checks `is_admin()` before hooking to `customize_register`. That
code runs both on the customizer frame as well as the preview frame, and
for the preview frame `is_admin()` returns false, so the preview frame has
really no idea about the registered controls.
Proposed fix in [attachment:27993.2.diff] which doesn't touch controls
that the preview frame has no information about. Here's also some
[https://cloudup.com/iRkfGIvQ5ry simple plugin code] to reproduce.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27993#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list