[wp-trac] [WordPress Trac] #33121: wp_kses_attr_check fails to process html data-* attributes
WordPress Trac
noreply at wordpress.org
Sat Jul 25 09:40:14 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: close | Focuses:
--------------------------+------------------------------
Comment (by isoftware):
Thank you for your swift repsonse.
I have the following shortcode on a site that has only one admin user so
all content is created from admin:
{{{
...
<a data-slide-index="[counter-increment output='true']" href="#"></a>
...
}}}
On debug I can see that the counter-increment shortcode is returning the
correct integer value but after the wp_kses_attr_check returns false,
wp_kses_one_attr returns empty string and the returned shortcode content
is :
{{{
...
<a href="#"></a>
...
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33121#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list