[wp-trac] [WordPress Trac] #33102: Shortcodes with Quoted Attributes Break Inside of Quoted HTML Attributes

WordPress Trac noreply at wordpress.org
Sun Jul 26 12:01:36 UTC 2015


#33102: Shortcodes with Quoted Attributes Break Inside of Quoted HTML Attributes
--------------------------+------------------------------
 Reporter:  cgrymala      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Shortcodes    |     Version:  4.2.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by georgestephanis):

 Replying to [comment:28 cgrymala]:
 > What if we were to add a parameter to the `add_shortcode()` function
 that allows us to specify whether the shortcode should be processed prior
 to kses or after kses? By default, the shortcode would be processed after
 kses, as is the new default anyway, but this would potentially allow us to
 specify that a shortcode should always be interpreted in the first manner
 (process the shortcode before parsing the HTML element for attributes)
 without breaking the new manner of handling things.
 >
 > Is that a reasonable possibility?

 I don't think it's necessarily the best idea, largely as kses is run on
 the content on save and is user specific, and do_shortcode is run on
 output (front-end requests) and isn't dependent on the user that edited
 the content (whether the user is contributor or administrator), if that
 makes sense?

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


More information about the wp-trac mailing list