[wp-trac] [WordPress Trac] #28412: get_queried_object_id() method in pre_get_posts
WordPress Trac
noreply at wordpress.org
Sat May 31 01:19:05 UTC 2014
#28412: get_queried_object_id() method in pre_get_posts
-------------------------------------------------+-------------------------
Reporter: wpsmith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Query | Review
Severity: normal | Version: trunk
Focuses: administration, template, | Keywords:
multisite, performance |
-------------------------------------------------+-------------------------
When using `$wp_query->get_queried_object_id()` within the `pre_get_posts`
hook results in an error:
`Notice: Undefined property: WP_Query::$post in C:\xampp\htdocs\wp\wp-
includes\query.php on line 3700`
Here is a simple test:
https://gist.github.com/wpsmith/0c5a1d497eb5738309f6
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28412>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list