[wp-trac] [WordPress Trac] #42335: NULL get_queried_object on /feed URL
WordPress Trac
noreply at wordpress.org
Fri Oct 27 03:18:10 UTC 2017
#42335: NULL get_queried_object on /feed URL
--------------------------+------------------------------
Reporter: krbvroc1 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by munyagu):
* keywords: => has-patch
Comment:
I added a check to the following methods.
WP_Query::is_attachment()
WP_Query::is_author()
WP_Query::is_category()
WP_Query::is_page()
WP_Query::is_single()
WP_Query::is_singular()
WP_Query::is_tag()
WP_Query::is_tax()
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42335#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list