#14015 closed enhancement (fixed)
Wrappers for get_queried_object() and get_queried_object_id()
| Reported by: | filosofo | Owned by: | filosofo |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Template | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch still applies cleanly.