[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 14:20:28 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:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: => reporter-feedback
Comment:
This was previously suggested in [attachment:ticket:21394:21394.diff
21394.diff] (see comment:6:ticket:21394), but the
[https://irclogs.wordpress.org/chanlog.php?channel=wordpress-
dev&day=2012-11-08&sort=asc#m487259 consensus in IRC] was that these
notices can sometimes reveal a developer error, so we probably should not
just patch symptoms.
Is there a valid case for any of these template tags to be true while the
corresponding queried object is empty? Could you provide a piece of code
to reproduce the issue on a clean install?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29660#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list