[wp-trac] [WordPress Trac] #7610: query.php - Use strpos() instead of preg_match()

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 27 08:08:18 GMT 2008


#7610: query.php - Use strpos() instead of preg_match()
--------------------------+-------------------------------------------------
 Reporter:  johnbillion   |       Owner:  anonymous
     Type:  enhancement   |      Status:  new      
 Priority:  low           |   Milestone:           
Component:  Optimization  |     Version:  2.6.1    
 Severity:  minor         |    Keywords:           
--------------------------+-------------------------------------------------
 There's a preg_match() in `wp-includes/query.php` where strpos() could be
 used instead, as it's only checking if one string occurs inside another
 (specifically, if <!--nextpage--> is found within the post content).

 Let's replace it with strpos() for some hot optimisation action. Patch
 coming up.

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


More information about the wp-trac mailing list