[wp-trac] [WordPress Trac] #14340: WP_Query::get_queried_object() does return object but not as reference

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 17 22:28:15 UTC 2010


#14340: WP_Query::get_queried_object() does return object but not as reference
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:                 
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 In the objects inner guts, references are widespreadly used, but this
 function which returns an object according to the docblocks description.
 PHP 4 compat needs return by reference here.

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


More information about the wp-trac mailing list