[wp-trac] [WordPress Trac] #20756: Wrong reference returned in function &get_pages

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 13 14:49:13 UTC 2012


#20756: Wrong reference returned in function &get_pages
------------------------------+------------------------
 Reporter:  thomask           |       Owner:  foxinni
     Type:  defect (bug)      |      Status:  reviewing
 Priority:  normal            |   Milestone:  3.5
Component:  Warnings/Notices  |     Version:  3.3.2
 Severity:  trivial           |  Resolution:
 Keywords:  has-patch         |
------------------------------+------------------------

Comment (by wonderboymusic):

 "need" may be the wrong word - since {{{$pages}}} isn't bound to a global,
 who cares if it's passed by reference? Cuz altering it won't change any
 internal variables. But the bug is that a scalar is returned instead of a
 variable, which is easily fixed without removing return by ref.

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


More information about the wp-trac mailing list