[wp-trac] [WordPress Trac] #3956: Clean up vars.php

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 11 01:14:39 GMT 2007


#3956: Clean up vars.php
--------------------------+-------------------------------------------------
 Reporter:  rob1n         |       Owner:  anonymous
     Type:  enhancement   |      Status:  new      
 Priority:  normal        |   Milestone:  2.2      
Component:  Optimization  |     Version:  2.2      
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 vars.php currently:

 * Uses 0/1 for false/true. Mark noted in the source with a comment that
 "we should probably use true/false." 0 and 1 are a bit confusing.
 * Does preg_match's that really don't need to be regular expressions.
 strpos() works much faster.

 Just some speed ups.

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


More information about the wp-trac mailing list