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

WordPress Trac noreply at wordpress.org
Sat Jul 25 12:04:49 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:  Formatting    |     Version:  4.2.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by isoftware):

 * keywords:  close =>


Comment:

 In addition I could not find a way to generically whitelist the data-
 attributes. One needs to hook into the wp_kses_allowed_html filter to
 register explicitly data attributes for specific elements which seems
 quite complicated for the shortcodes example.

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


More information about the wp-trac mailing list