[wp-trac] [WordPress Trac] #38864: Customize: Settings of custom types should return post_value when value() called
WordPress Trac
noreply at wordpress.org
Sat Nov 19 05:40:01 UTC 2016
#38864: Customize: Settings of custom types should return post_value when value()
called
--------------------------+-----------------
Reporter: westonruter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: Customize | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------
When a custom setting `type` is supplied when constructing a the base
`WP_Customize_Setting` class, then the plugin implementing the custom type
is expected to supply the value via the `customize_value_{$id_base}`
filter which is then returned in the call to
`WP_Customize_Setting::value()`. When a setting is previewed, however, it
is expected that the `WP_Customize_Setting::value()` returns the previewed
(post) value instead of whatever the `customize_value_{$id_base}` filter
returned. This is not currently the case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38864>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list