WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 7 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:

Description

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
7 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.