[wp-trac] [WordPress Trac] #37275: Facilitate creating controls that manipulate settings with object values
WordPress Trac
noreply at wordpress.org
Wed Aug 17 00:03:07 UTC 2016
#37275: Facilitate creating controls that manipulate settings with object values
-------------------------+-----------------------------
Reporter: westonruter | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Customize | Version: 3.4
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+-----------------------------
Comment (by westonruter):
Instead of `data-customize-setting-property-link` I think it would be
better if the existing `data-customize-setting-link` supported
multidimensional paths. For example, let's say a control is associated
with a setting which represents a `WP_Post` object with a setting ID. Then
a textarea control could be added with the field element having `data-
customize-setting-link="default[post_content]"` to link it to the property
of the `default` setting, which here would be something like
`post[page][123]`. This is better over the existing implementation in
Customize Posts for `data-customize-setting-property-link` in that it will
continue to allow us to associate a control with multiple settings, as
opposed to introducing a limitation whereby only one setting's properties
can be synced with.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37275#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list