[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:43:32 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 SergeyBiryukov):

 * focuses:  template =>
 * component:  General => Formatting


Old description:

> 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]</>

New description:

 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#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list