Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Conversation

@westonruter
Copy link
Contributor

@westonruter westonruter commented Jun 7, 2016

The CustomizeSnapshots\Customize_Snapshot_Manager::can_preview() method gets called alter anyway in \CustomizeSnapshots\Customize_Snapshot_Manager::preview() before the setting actually gets previewed. So we don't need to call it earlier. We can just populate the unsanitized post values as early as we can, and then the Customizer will pick up the settings on its own.

Nevertheless, I think we can actually get rid of can_preview altogether. See #26.

Fixes #33.

@coveralls
Copy link

coveralls commented Jun 7, 2016

Coverage Status

Coverage increased (+0.4%) to 83.333% when pulling 1465ae0 on bugfix/widgets into 8b0b742 on master.

@westonruter westonruter changed the title Set post value without creating dynamic settings Fix previewing widgets in snapshots Jun 7, 2016
@valendesigns valendesigns merged commit b32cb69 into master Jun 7, 2016
@valendesigns valendesigns deleted the bugfix/widgets branch June 7, 2016 18:08
@westonruter westonruter modified the milestone: 0.4.0 Jun 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants