Skip to content

Add 'do_blocks' to auto-escaped functions in EscapeOutputSniff#2555

Closed
Prathmesh5-alt wants to merge 1 commit into
WordPress:developfrom
Prathmesh5-alt:add-do-blocks-autoescape
Closed

Add 'do_blocks' to auto-escaped functions in EscapeOutputSniff#2555
Prathmesh5-alt wants to merge 1 commit into
WordPress:developfrom
Prathmesh5-alt:add-do-blocks-autoescape

Conversation

@Prathmesh5-alt

Copy link
Copy Markdown

This PR adds the **do_blocks()** function to the $customAutoEscapedFunctions array inside EscapeOutputSniff.php.
Since do_blocks() returns pre-escaped block HTML, this prevents false positives during static analysis.

Fixes

Fixes #2524

@dingo-d

dingo-d commented Jul 22, 2025

Copy link
Copy Markdown
Member

Closing as duplicate of #2525. Please search if a PR is open before opening a new/same PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add do_blocks to the $autoEscapedFunctions list

3 participants