Opened 21 months ago
Closed 21 months ago
#18583 closed defect (bug) (invalid)
is_post_type_archive() shouldn't return true if is_search() is true
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Query | Version: | 3.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
- Register a post type.
- Do a search domain.com/post_type/?s=foo
- Result: is_post_type_archive() will return true, is_archive() too.
In my opinion is_post_type_archive() shouldn't return true on a search.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.

Also, what's the rationale?
What's the situation with ?author_name=foo&s=bar etc.?