[wp-trac] [WordPress Trac] #26674: The get_tag_regex() function is a too greedy when searching for a closing tag.

WordPress Trac noreply at wordpress.org
Wed Dec 18 20:57:31 UTC 2013


#26674: The get_tag_regex() function is a too greedy when searching for a closing
tag.
--------------------------+-----------------------------
 Reporter:  kopepasah     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  trunk
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 At its current state, the get_tag_regex() function is a too greedy when
 searching for a closing tag. This causes content with more than one of the
 same media tag (e.g iframe followed by an iframe) to be grouped together
 as one value, with the content between in that value.

 This patch, while lazier, makes the regex function as expected.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26674>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list