[wp-trac] [WordPress Trac] #38360: WP does not return attached media

WordPress Trac noreply at wordpress.org
Sun Oct 23 12:51:10 UTC 2016

#38360: WP does not return attached media
 Reporter:  blatan        |       Owner:  joemcgill
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.6.1
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
Changes (by kovshenin):

 * keywords:   => close


 The query from your clean version looks correct. The one you originally
 posted doesn't, so it seems like a plugin or theme is altering your
 `post_status` at some point (`pre_get_posts`, etc.). You could try and
 disable your plugins one by one until the function starts working as
 expected, that will help you narrow it down.

Ticket URL: <https://core.trac.wordpress.org/ticket/38360#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list