[wp-trac] [WordPress Trac] #16752: Remove unnecessary return by reference

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 29 21:41:30 UTC 2011


#16752: Remove unnecessary return by reference
----------------------------------------+------------------------------
 Reporter:  scribu                      |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  General                     |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch php5 3.2-early  |
----------------------------------------+------------------------------

Comment (by hakre):

 [attachment:16752.patch 16752.patch] as an example. This private function
 did return by reference, but the callee never received as reference.
 That's fixed.

 The patch additionally shows that it's now possible to call object methods
 on function returns.

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


More information about the wp-trac mailing list