-
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
Added escaping function to p element attribute for 'dynamic' create-block template. #44473
Conversation
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @lewis-elborn! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
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.
This is a great addition! Thanks for taking the time to put it together.
I’m not sure it’s necessary here. We should double-check at which stage |
See: All blocks get automatically sanitized. |
I think per discussion in WordPress/WordPress-Coding-Standards#2085, the hardening should happen in The current assumption is that the |
@lewis-elborn - just looping back to this stale PR to see if it is something you're still pursuing or if it can be closed? |
What?
This PR simply uses the
wp_kses_data();
function to escape the data, as per the Phpcs WordPress Coding Standards instruction within the IDE. Probably not essential, but I was confused.