[wp-trac] [WordPress Trac] #54258: post_type query parameter added to url causes incorrect type search results (5.8.1)
WordPress Trac
noreply at wordpress.org
Wed Oct 13 20:13:48 UTC 2021
#54258: post_type query parameter added to url causes incorrect type search results
(5.8.1)
--------------------------+------------------------------
Reporter: arestelle | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.8.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by arestelle):
I'm looking into my custom theme code and I do have a function that
applies this parameter, but only when the current query is a custom
taxonomy or a search. I suspect either the `WP_Query::is_tax()` or
`WP_Query::is_search()` is now returning true on custom post type archive
pages.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54258#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list