[wp-trac] [WordPress Trac] #52894: The wp_sanitize_script_attributes function added in version 5.7 does not escape attributes in some cases.
WordPress Trac
noreply at wordpress.org
Tue Apr 6 03:40:53 UTC 2021
#52894: The wp_sanitize_script_attributes function added in version 5.7 does not
escape attributes in some cases.
-------------------------------------------------+-------------------------
Reporter: tmatsuur | Owner:
| peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.7.1
Component: Script Loader | Version: 5.7
Severity: critical | Resolution: fixed
Keywords: has-patch commit fixed-major dev- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"50661" 50661]:
{{{
#!CommitTicketReference repository="" revision="50661"
Script Loader: Escape HTML5 boolean attribute names.
Add escaping of boolean attribute names in
`wp_sanitize_script_attributes()` for themes supporting HTML5 script
elements.
Props tmatsuur, johnbillion, joyously.
Merges [50575] to the 5.7 branch.
Fixes #52894.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52894#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list