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

Make sure wp_filter_post_kses does not corrupt JSON data in post_content #312

Merged
merged 1 commit into from
Jun 10, 2019

Conversation

dennisnissle
Copy link
Contributor

Fixes #311. Removes (just like WP_Embed) wp_filter_post_kses before saving the content to prevent WordPress from corrupting JSON data within post_content.

See https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-embed.php#L282 as reference.

Copy link
Contributor

@rrennick rrennick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vendidero This looks & works great. Thanks for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wp_filter_post_kses creates invalid JSON on save_post_array
2 participants