Opened 18 years ago
Closed 18 years ago
#8991 closed defect (bug) (fixed)
get_posts() fails to retrieve attachments with mime type like (type/sub+suffix)
| Reported by: | Sam_a | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | Media | Version: | 2.7 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
get_posts() and related functions can't retrieve attachments whose post_mime_type field has a valid compound subtype like atom+xml, xspf+xml, & c.
A fix is to add the plus character + to the $mime_subgroup expression in wp_post_mime_type_where().
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Fixes wp_post_mime_type_where() so it works correctly for mime types like (type/sub+suffix)