[wp-trac] [WordPress Trac] #33121: wp_kses_attr_check fails to process html data-* attributes
WordPress Trac
noreply at wordpress.org
Fri Oct 12 13:20:06 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: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------
Comment (by azaozz):
In 33121.5.diff:
- Based on 33121.2.diff.
- Fix the regex so it doesn't allow trailing hyphen or two consecutive
hyphens.
- Add the tests.
All tests from 33121.4.diff pass except the `array( '33121-*', true ),`
changed that to `array( 'data-*', true ),` :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33121#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list