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

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 4 23:39:45 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       |   Keywords:  needs-patch php5 3.2-early
-------------------------+----------------------------------------
 There are several functions in WP that return an object by reference.

 With PHP5, this is not necessary anymore.

 Examples of such functions: get_post(), get_term().

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


More information about the wp-trac mailing list