[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
Thu Dec 19 16:42:47 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                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------
Changes (by kopepasah):

 * keywords:  has-patch needs-unit-tests => has-patch needs-testing


Comment:

 The attached unit test is a patch for the trunk/media.php unit test. The
 original test only looked for one occurrence of a type in the content.
 This tests for multiple occurrences. The
 test_get_media_embedded_in_content() test runs get_tag_regex().

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


More information about the wp-trac mailing list