[wp-trac] [WordPress Trac] #25829: wp.html.attrs( string ) JS method has issue with attributes with dashes
WordPress Trac
noreply at wordpress.org
Fri Nov 8 03:39:23 UTC 2013
#25829: wp.html.attrs( string ) JS method has issue with attributes with dashes
--------------------------+------------------------------
Reporter: seamusleahy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version:
Severity: minor | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by seamusleahy):
Since I don't want to change the way shortcode attributes are parsed, I
added a general purpose function based on `wp.shortcode.attrs` to parse
both by passing an options parameter. The `options` parameter is an object
with a flag `dashesInNames` to allow dashes in the attribute names.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25829#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list