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

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 27 08:14:51 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         |   Resolution:           
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Changes (by johnbillion):

  * keywords:  => has-patch

Comment:

 Patch.

 Note that there's no need to check for equality like the PHP manual
 recommends when using strpos(), as in our case <!--nextpage--> will not be
 occuring at the beginning of the post content.

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


More information about the wp-trac mailing list