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

WordPress Trac noreply at wordpress.org
Wed Oct 19 03:29:59 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:                |     Focuses:
--------------------------+------------------------------
Changes (by joemcgill):

 * owner:   => joemcgill
 * status:  new => reviewing


Comment:

 Hi @blatan,

 Thanks for the report. I'm unable to reproduce this in with a post that
 has a few images attached. In my test case both `get_children( $post_id )`
 and `get_attached_media( 'image', $post_id )` is returning an array
 containing the attachment posts. Could you check if this is happening with
 a clean install of WordPress running a default theme and all plugins
 disabled?

 Thanks,
 Joe

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


More information about the wp-trac mailing list