[wp-trac] [WordPress Trac] #24790: Attachment of posts not	working
    WordPress Trac 
    noreply at wordpress.org
       
    Wed Jul 17 21:22:43 UTC 2013
    
    
  
#24790: Attachment of posts not working
-----------------------------+----------------------
 Reporter:  rajd9898         |       Owner:
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Post Thumbnails  |     Version:  3.5.2
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |
-----------------------------+----------------------
Changes (by markoheijnen):
 * keywords:  needs-testing =>
 * status:  new => closed
 * resolution:   => invalid
 * severity:  critical => normal
 * milestone:  Awaiting Review =>
Comment:
 This doesn't seem right. When you query on the post_type 'attachment', you
 need to set post_status argument to 'inherit' or 'any'. Also post_id isn't
 an argument for get_children(). Maybe that can be why it goes wrong.
 Looking to the code it unlikely a bug in WordPress since it relies on
 get_posts/WP_Query to get the data. This should then also fail in the
 backend like the media screen.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24790#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list