[wp-trac] [WordPress Trac] #8991: get_posts() fails to retrieve attachments with mime type like (type/sub+suffix)

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 29 16:46:09 GMT 2009


#8991: get_posts() fails to retrieve attachments with mime type like
(type/sub+suffix)
--------------------------+-------------------------------------------------
 Reporter:  Sam_a         |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.8
Component:  Media         |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
 get_posts() and related functions can't retrieve attachments whose
 post_mime_type field has a [http://www.iana.org/assignments/media-
 types/application/ 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()''.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8991>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list