Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#14340 closed defect (bug) (invalid)

WP_Query::get_queried_object() does return object but not as reference

Reported by: hakre Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


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.

Change History (2)

#2 @scribu
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

The queried object isn't supposed to be modified so it's ok.

Note: See TracTickets for help on using tickets.