[wp-trac] [WordPress Trac] #29660: Functions in wp_includes/query.php assume non-null return value from get_queried_object
WordPress Trac
noreply at wordpress.org
Sat Oct 18 20:46:22 UTC 2014
#29660: Functions in wp_includes/query.php assume non-null return value from
get_queried_object
-------------------------------+------------------------------
Reporter: yellyc | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.0
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by boonebgorges):
Yes, I saw that you're calling it at `wp_enqueue_scripts`. But on a
vanilla WP installation, in each of the cases that you mentioned (home
page, search, date archive), the 'is_page' flag at line 4327 that I
mentioned above is `false`. So the `get_queried_object()` check at 4333 is
never reached in these cases. The question is: what on your installation
is making 'is_page' true at 4327? Please have a look at the plugins and
other customizations that are running when this happens.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29660#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list