Clarify widget output escaping guidance - #1335
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
55d2a3c to
2ba3f18
Compare
|
Rebased onto trunk to resolve a conflict in @ernilambar would you be able to take a look, or point me to someone who can? This documents the |
Summary
late_escapingcheck documentation.wp_kses_post()for wrapper HTML such asbefore_widget,after_widget,before_title, andafter_title.Testing
vendor/bin/phpcs --standard=WordPress --sniffs=WordPress.Security.EscapeOutput tests/phpunit/testdata/plugins/test-plugin-late-escaping-without-errors/load.phpvendor/bin/phpcs --standard=phpcs.xml.dist tests/phpunit/testdata/plugins/test-plugin-late-escaping-without-errors/load.phpnpm run test-php -- --filter Late_Escaping_Check_Testsgit diff --checkFixes #946