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

WordPress Trac noreply at wordpress.org
Sat Jul 25 08:37:10 UTC 2015


#33121: wp_kses_attr_check fails to process html data-* attributes
--------------------------+-----------------------------
 Reporter:  isoftware     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.2.3
 Severity:  normal        |   Keywords:
  Focuses:  template      |
--------------------------+-----------------------------
 wp_kses_attr_check does not take into account data attributes and retuns
 false on valid elements.

 You can reproduce this issue with shortcodes in data attributes using the
 following scenario
 <a data-trigger="[button-trigger]" href="#">[button-name]</>

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


More information about the wp-trac mailing list