[wp-trac] [WordPress Trac] #43147: Introduce `esc_html_comment` and translation related functions
WordPress Trac
noreply at wordpress.org
Tue Jan 23 15:27:18 UTC 2018
#43147: Introduce `esc_html_comment` and translation related functions
-------------------------+-----------------------------
Reporter: jipmoors | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Triggered by the following PR on Yoast SEO [https://github.com/Yoast
/wordpress-seo/pull/8687 #8687] I saw the need for `esc_html_comment`
functionality in WordPress.
This patch is based on the current API for formatting and escaping
functions.
The implementation is based on the specifications found on the
[https://www.w3.org/TR/html51/syntax.html#sec-comments HTML specifications
page].
I've added unit tests to cover the situations that I could come up with.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43147>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list