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

Populate back-compat customized state up front for parity with changesets#127

Merged
westonruter merged 1 commit into
developfrom
bugfix/populate-customized-state-early
Mar 3, 2017
Merged

Populate back-compat customized state up front for parity with changesets#127
westonruter merged 1 commit into
developfrom
bugfix/populate-customized-state-early

Conversation

@westonruter

Copy link
Copy Markdown
Contributor

I ran into an issue on 4.6 when back-compat snapshots are enabled where attempting to publish a snapshot from the WP Admin would fail and show an “Unrecognized setting” error shown in the WP Admin screen for the snapshots.

This specific plugin had a customize_dynamic_setting_args filter that would short-circuit if the unsanitized_post_values lacked a value for the given $setting_id. This is probably a deficiency with the other plugin as I don't see why it would need to do this, but in any case this ensures the plugin works in 4.6 with back compat snapshots as well as in 4.7 with changesets.

@westonruter westonruter added this to the 0.6.0 milestone Mar 2, 2017
@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling efd1bdf on bugfix/populate-customized-state-early into ** on develop**.

1 similar comment
@coveralls

coveralls commented Mar 2, 2017

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling efd1bdf on bugfix/populate-customized-state-early into ** on develop**.

@westonruter westonruter merged commit 5e15e85 into develop Mar 3, 2017
@westonruter westonruter deleted the bugfix/populate-customized-state-early branch March 3, 2017 04:20
@westonruter westonruter restored the bugfix/populate-customized-state-early branch March 3, 2017 04:26
@valendesigns valendesigns deleted the bugfix/populate-customized-state-early branch August 23, 2017 01:10
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.

2 participants