#14015 closed enhancement (fixed)
Wrappers for get_queried_object() and get_queried_object_id()
Reported by: | filosofo | Owned by: | filosofo |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Template | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
I am frequently writing
$GLOBALS['wp_query']->get_queried_object()
and
$GLOBALS['wp_query']->get_queried_object_id()
We have wrappers for other WP_Query methods; these seem like obvious candidates.
Patch replaces the above with the following, respectively:
get_queried_object()
and
get_queried_object_id()
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Patch still applies cleanly.