[wp-trac] [WordPress Trac] #28219: add_media 'Uploaded to this post' listing unattached files when post type does not support 'thumbnail'

WordPress Trac noreply at wordpress.org
Fri Oct 3 17:25:31 UTC 2014


#28219: add_media 'Uploaded to this post' listing unattached files when post type
does not support 'thumbnail'
--------------------------+---------------------------------------
 Reporter:  bobbingwide   |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Media         |     Version:  3.9
 Severity:  minor         |  Resolution:  worksforme
 Keywords:                |     Focuses:  administration, template
--------------------------+---------------------------------------
Changes (by wonderboymusic):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 if `wp_enqueue_media()` is called with no post ID, it will resolve to `0`
 - hence the unattached items. It was obviously being called by plugins
 that way, which was wrong.

 There is nothing for core to do here.

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


More information about the wp-trac mailing list