-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 formats not working in block bindings content #58055
Fix formats not working in block bindings content #58055
Conversation
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/experimental/block-bindings/class-wp-block-bindings.php |
Flaky tests detected in bf62a61a7b90c447ea959ec4dd121dd0afec507c. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7606932279
|
bf62a61
to
a87b95b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested it, and it seems to work fine.
cc: @artemiomorales @michalczaplinski In case you have to apply this change in your ongoing PRs.
Thanks, I've applied it in the Core backport 02f0ea3 |
Backport PR WordPress/wordpress-develop#5888 |
✅ I updated this PR with the |
What?
Fixes #58053
Currently formats are not working for block bindings content. This PR attempts to resolve the issue.
How?
Currently
esc_html
is being used on any block content html. This PR switches to usingwp_kses_post
to allow a subset of safe html.Testing Instructions
Prerequisite: Enable the pattern overrides experiment from the gutenberg experiment page.
Screenshots or screencast
Before
After