[wp-trac] [WordPress Trac] #4823: Wrong REGEXP in formatting.php

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 27 15:37:53 GMT 2007

#4823: Wrong REGEXP in formatting.php
 Reporter:  RickGC   |       Owner:  anonymous 
     Type:  defect   |      Status:  new       
 Priority:  normal   |   Milestone:  2.4 (next)
Component:  General  |     Version:  2.2.2     
 Severity:  normal   |    Keywords:            
 In wp-includes/formatting.php, line 649 the REGEXP is wrong?

 I think it must be

 $textarr = preg_split("/(<.*>)/Us", $text, -1, PREG_SPLIT_DELIM_CAPTURE);
 // capture the tags as well as in between

 Note the extra ''s'' in "/(<.*>)/Us"


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

More information about the wp-trac mailing list