[wp-trac] [WordPress Trac] #17780: Use PHP native double encoding prevention in htmlspecialchars()
WordPress Trac
noreply at wordpress.org
Thu Jun 18 21:59:12 UTC 2015
#17780: Use PHP native double encoding prevention in htmlspecialchars()
-------------------------+--------------------------
Reporter: nbachiyski | Owner: miqrogroove
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.3
Component: Formatting | Version: 3.2.1
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------+--------------------------
Changes (by wonderboymusic):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"32850"]:
{{{
#!CommitTicketReference repository="" revision="32850"
Since PHP 5.2.3, the `htmlspecialchars()` function has an optional
`$double_encode` parameter, which we can now use. This will save us a few
expensive kses/html decoding calls.
Adds unit tests.
Props miqrogroove.
Fixes #17780.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17780#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list