[wp-trac] Re: [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:53:02 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        |   Resolution:     
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Changes (by Sam_a):

  * keywords:  => has-patch

Comment:

 Patch works for me in revision 10347.

 Without the patch, ''wp_post_mime_type_where()'' strips the `+` and
 returns, e.g., `(post_mime_type = 'application/atomxml')`, which won't
 match anything.

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


More information about the wp-trac mailing list