[wp-trac] [WordPress Trac] #33121: wp_kses_attr_check fails to process html data-* attributes
WordPress Trac
noreply at wordpress.org
Wed Oct 10 14:30:07 UTC 2018
#33121: wp_kses_attr_check fails to process html data-* attributes
----------------------------------------+-----------------------
Reporter: isoftware | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.0
Component: Editor | Version: 4.2.3
Severity: major | Resolution:
Keywords: needs-unit-tests has-patch | Focuses:
----------------------------------------+-----------------------
Changes (by azaozz):
* keywords: needs-patch needs-unit-tests => needs-unit-tests has-patch
* component: Shortcodes => Editor
Comment:
In 33121.diff:
- Allow `data-*` attributes. Needs to be set as `data-*` when adding it,
not to be mixed with the HTML 4.0 `data` attribute
(https://www.w3.org/TR/html40/struct/objects.html#adef-data).
- Add `data-*` to all elements by default.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33121#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list