[wp-trac] [WordPress Trac] #33121: wp_kses_attr_check fails to process html data-* attributes

WordPress Trac noreply at wordpress.org
Sun Oct 14 23:56:32 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 peterwilsoncc):

 [attachment:"33121.6.diff"] is based on the previous patch with:

 * multiline comment format changed
 * `@since` added to docblocks
 * Modified `test_wildcard_attribute_prefixes` to try variations of `data-`
 prefix to validate

 Following my last comment I could see why you included `data-*` in two
 locations. Let's go with the compromise version.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/33121#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list