[wp-trac] [WordPress Trac] #56663: `tag_escape()` does not follow naming convention.
WordPress Trac
noreply at wordpress.org
Tue Sep 27 11:24:46 UTC 2022
#56663: `tag_escape()` does not follow naming convention.
---------------------------+-------------------------------
Reporter: peterwilsoncc | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: | Focuses: coding-standards
---------------------------+-------------------------------
Comment (by SergeyBiryukov):
It looks like function was introduced to match `attribute_escape()`, but
then got missed when `attribute_escape()` was replaced with `esc_attr()`:
* [4656] introduced `attribute_escape()`.
* [7497] introduced `tag_escape()`.
* [11103] turned `attribute_escape()` into a wrapper for `attr()`.
* [11204] renamed `attr()` to `esc_attr()`.
* [13096] deprecated `attribute_escape()`.
I think `esc_tag()` would be more in line with `esc_attr()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56663#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list