[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 Sep 13 16:47:10 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 yellyc):
First of all, I am very surprised my search for open tickets did not yield
the ticket in question, I apologise for the duplicate.
As for a valid case in for use of these tags in cases in which the queried
object is empty, I for one make a call to is_category in a function called
at wp_enqueue_scripts, which is called on many occasions, some of which
don't have a queried object.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29660#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list