Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#14015 closed enhancement (fixed)

Wrappers for get_queried_object() and get_queried_object_id()

Reported by: filosofo's profile filosofo Owned by: filosofo's profile filosofo
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.0
Component: Template Keywords: has-patch commit
Focuses: Cc:


I am frequently writing




We have wrappers for other WP_Query methods; these seem like obvious candidates.

Patch replaces the above with the following, respectively:




Attachments (1)

get_queried_object_wrapper.14015.diff (919 bytes) - added by filosofo 14 years ago.

Download all attachments as: .zip

Change History (6)

#1 @filosofo
14 years ago

  • Owner set to filosofo
  • Status changed from new to accepted

#2 @nacin
14 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Triage to 3.1

#3 @filosofo
14 years ago

Patch still applies cleanly.

#4 @ryan
14 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [16091]) get_queried_obecjt() and get_queried_object_id(). Props filosofo. fixes #14015

#5 @scribu
14 years ago

(In [16114]) use get_queried_object() wrappers throughout. See #14015

Note: See TracTickets for help on using tickets.