[wp-trac] [WordPress Trac] #14015: Wrappers for get_queried_object() and get_queried_object_id()
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 21 03:39:11 UTC 2010
#14015: Wrappers for get_queried_object() and get_queried_object_id()
-------------------------+--------------------------------------------------
Reporter: filosofo | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.1
Component: Template | Version: 3.0
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
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()`
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14015>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list