[wp-trac] [WordPress Trac] #30529: Customizer: Settings with type 'option' not saved before refresh
WordPress Trac
noreply at wordpress.org
Wed Aug 24 19:46:09 UTC 2016
#30529: Customizer: Settings with type 'option' not saved before refresh
----------------------------+-----------------------------
Reporter: jaspermdegroot | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Customize | Version: 4.0.1
Severity: normal | Resolution: duplicate
Keywords: | Focuses: administration
----------------------------+-----------------------------
Changes (by westonruter):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
@jaspermdegroot Thanks for the helpful code and steps to reproduce. I've
found the problem. It's actually a known issue (#24844) where
`get_theme_mods()` isn't returning the customizer-previewed values. The
fix is simply to use `get_theme_mod()` instead. I've implemented this and
fixed an issue with the content alignment sanitize callback here:
https://gist.github.com/westonruter/c9b9cf597e9e9129070d67b68920168e/revisions
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30529#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list