[wp-trac] [WordPress Trac] #30738: JS content templates for base WP_Customize_Control
WordPress Trac
noreply at wordpress.org
Fri May 26 15:37:07 UTC 2017
#30738: JS content templates for base WP_Customize_Control
-------------------------------------+-------------------------------------
Reporter: celloexpressions | Owner: westonruter
Type: enhancement | Status: accepted
Priority: normal | Milestone: 4.8.1
Component: Customize | Version: 4.1
Severity: normal | Resolution:
Keywords: needs-unit-tests needs- | Focuses: accessibility,
patch | javascript, rest-api
-------------------------------------+-------------------------------------
Comment (by westonruter):
Just realized that the `default` param from `WP_Customize_Setting` is not
getting exported from PHP to JS. Sometimes, as in the case of the color
control, the default value from the setting is needed by the control. The
color control currently copies the setting's default value into the
control when the control is exported to the client, but this isn't going
to facilitate controls that are added dynamically on the client. So I
think something like [attachment:export-setting-defaults.diff] should also
be done.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30738#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list