Skip to content

Fix false-positive escaping warning on get_block_wrapper_attributes#340

Merged
kadamwhite merged 3 commits into
mainfrom
do-not-flag-block-attrs-function
Jun 23, 2026
Merged

Fix false-positive escaping warning on get_block_wrapper_attributes#340
kadamwhite merged 3 commits into
mainfrom
do-not-flag-block-attrs-function

Conversation

@kadamwhite

Copy link
Copy Markdown
Collaborator

get_block_wrapper_attributes responsibly builds its output string using safecss_filter_attr and esc_attr, and its output is not filterable. We should allow this function.

(This is particularly annoying to get false-flagged today, because it usually occurs within an inline tag in HTML partials that makes it visually clunky to add an ignore directive.)

@rmccue rmccue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍 Looks right based on the core implementation - which itself doesn't actually echo anyway.

@kadamwhite kadamwhite merged commit 44559e8 into main Jun 23, 2026
3 checks passed
@kadamwhite kadamwhite deleted the do-not-flag-block-attrs-function branch June 23, 2026 13:17
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.

2 participants