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

WordPress Trac noreply at wordpress.org
Fri Jul 24 01:20:27 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:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by dnavarrojr):

 Regular Expressions have never been a strong suite, however I have written
 dozens of mathematical parsers and based on what I know from that process,
 I would have to agree with your assessment.  The correct way to handle
 this is to parse the shortcodes first and ignore the HTML, which is how I
 *think* it worked before the patch.  In fact, I'm not sure why it's doing
 ANY HTML parsing at all.

 If someone else doesn't work this out, I'll take a few days to work on it
 myself in a week.

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


More information about the wp-trac mailing list