[wp-trac] Re: [WordPress Trac] #5338: Preformance Tweaks for WordPress Trunk Plugin API, plugin.php

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 11 20:10:09 GMT 2007


#5338: Preformance Tweaks for WordPress Trunk Plugin API, plugin.php
--------------------------+-------------------------------------------------
 Reporter:  darkdragon    |        Owner:  anonymous
     Type:  enhancement   |       Status:  new      
 Priority:  normal        |    Milestone:  2.4      
Component:  Optimization  |      Version:  2.4      
 Severity:  normal        |   Resolution:           
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by Quandary):

 You also need to pre-define it if you take out the array sort (I don't see
 any sorting being done on $wp_filters anymore). Otherwise, the priorities
 will get all screwed up. Pri-10 will likely wind up running first, because
 it'll usually be the first level created.

 {{{
 <?php

 $example = array();
 $example[10] = "This is supposed to be last";
 $example[1] = "This is supposed to be first";

 foreach($example as $text)
     echo "$text\n";

 ?>
 }}}

 === Output ===

 {{{
 This is supposed to be last
 This is supposed to be first
 }}}

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


More information about the wp-trac mailing list