#12750 closed defect (bug) (fixed)
A few query bugs...
| Reported by: | jfarthing84 | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Query | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
I found a few bugs in query.php relating to attachments and taxonomies.
If you specify 'taxonomy' and 'term' in a query (therefore causing the $post_status_join to be true) and also a 'post_mime_type', it breaks the query because the post mime type is added like "post_mime_type =" rather than "wp_posts.post_mime_type=", making the post_mime_type column ambiguous.
Also, very related is the fact that querying a taxonomy automatically sets the post status to 'publish' regardless of any post status a specify. Why? What if I wanted to query all the drafts of a taxonomy or all of my own custom status?
Attachments (2)
Change History (11)
#3
@
16 years ago
- Keywords needs-patch added; dev-feedback removed
- Milestone Unassigned → 3.0
- Priority highest omg bbq → normal
- Severity blocker → normal
I think it's pretty clear that both issues should be addressed, but it can't be considered a blocker.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #12744