Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sanitize & unserialize failures #13

Merged
merged 9 commits into from Jan 23, 2015

Conversation

Projects
None yet
2 participants
@westonruter
Copy link
Contributor

commented Jan 22, 2015

On VIP, it was discovered that wp_filter_kses was being applied to the title_save_pre filter, causing & to be stored as & in the favorited widget's name. So this PR removes that filter while inserting the post via a new Filter_Suspension class.

Additionally, the content_save_pre filter and other filters related to saving and fetching the post_content was causing the serialized PHP widget instance to fail to be unserialized. So we get around this by base64-encoding the serialized widget instance, which is what WP_Customize_Widgets also does when passing around widget instance settings.

westonruter added some commits Jan 22, 2015

Update wp-dev-lib 72d90a0...133a4a5: Merge pull request xwp/wp-dev-li…
…b#79 from branch feature/fix-github-https-url-parsing

xwp/wp-dev-lib@72d90a0...133a4a5

88d4646 Fix pre-commit deriving ABSOLUTE_VAGRANT_PATH on vvv
a15070a Fix generate-markdown-readme to parse HTTPS GitHub remote URLs
133a4a5 Merge pull request xwp/wp-dev-lib#79 from branch feature/fix-github-https-url-parsing

westonruter added some commits Jan 22, 2015

danlouw added a commit that referenced this pull request Jan 23, 2015

Merge pull request #13 from xwp/feature/fix-sanitize-unserialize-fail…
…ures

Fix sanitize & unserialize failures

@danlouw danlouw merged commit 4e40221 into master Jan 23, 2015

1 check passed

continuous-integration/travis-ci The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.