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

WordPress Trac noreply at wordpress.org
Thu Aug 6 13:56:32 UTC 2015


#33121: wp_kses_attr_check fails to process html data-* attributes
--------------------------+-----------------------
 Reporter:  isoftware     |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Formatting    |     Version:  4.2.3
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------
Changes (by sswells):

 * status:  closed => reopened
 * resolution:  invalid =>
 * severity:  normal => major


Comment:

 Can we please reopen this? This looks like a bug to me, and not explained
 by the API changes. For example, if I use something like this:
 <a href="[the-link]" data-trigger="[button-trigger]">[button-
 name]</a>

 Then the shortcode inside the data attribute is not longer processed, but
 the others are. The shortcodes should be processed inside a data
 attribute, just as they are inside an href.

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


More information about the wp-trac mailing list