[wp-trac] Re: [WordPress Trac] #5231: add_action('all', ...) causes unexpected behaviour

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 4 16:24:43 GMT 2007


#5231: add_action('all', ...) causes unexpected behaviour
-------------------------------------+--------------------------------------
 Reporter:  tellyworth               |        Owner:  anonymous
     Type:  defect                   |       Status:  new      
 Priority:  normal                   |    Milestone:  2.4      
Component:  General                  |      Version:           
 Severity:  normal                   |   Resolution:           
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------
Comment (by darkdragon):

 I added two more patches that fix the issue ryan bought up. I also
 realized that the assignment in remove_filter() would actually decrease
 time with creating and allocating memory for what would amount to
 temporary variables.

 I used if statements instead. If the array portion exist, then it will be
 deleted and on then. This is a lot less time allocated towards checking
 whether it exists and remove it, then the worse case which is check that
 it exists, does not exist, create it, destroy it.

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


More information about the wp-trac mailing list