[wp-trac] [WordPress Trac] #17443: Passing by reference is not needed for admin_bar_menu action any longer

WordPress Trac wp-trac at lists.automattic.com
Sun May 15 11:46:26 UTC 2011


#17443: Passing by reference is not needed for admin_bar_menu action any longer
--------------------------+------------------------------
 Reporter:  hakre         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by hakre):

 Additionally there is no need to cast to an array as foreach does objects,
 see [http://www.php.net/manual/en/language.oop5.iterations.php PHP 5
 Object Iteration].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17443#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list