Skip to content

#54488 - Strip HTML comments in wp_filter_nohtml_kses().#2275

Open
konradyoast wants to merge 2 commits intoWordPress:trunkfrom
konradyoast:54488
Open

#54488 - Strip HTML comments in wp_filter_nohtml_kses().#2275
konradyoast wants to merge 2 commits intoWordPress:trunkfrom
konradyoast:54488

Conversation

@konradyoast
Copy link
Copy Markdown

Trac ticket: https://core.trac.wordpress.org/ticket/54488


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@johnregan3
Copy link
Copy Markdown

johnregan3 commented Jul 1, 2022

I've added some unit tests based on the code in this PR -> 54488-unit-tests.diff
See also https://core.trac.wordpress.org/ticket/54488

* or a context name such as 'post'. See wp_kses_allowed_html()
* for the list of accepted context names.
* @param string[] $allowed_protocols Array of allowed URL protocols.
* @param bool $allowed_comments Whether or not the HTML comments are allowed.
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.

Add @since for new function parameter.

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.

3 participants