[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 Jun 6 13:34:08 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:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.9
 Severity:  minor         |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------

Comment (by husobj):

 It looks look wp_enqueue_media() is only allowed to be called once, so if
 a plugin calls it without the post ID parameter before WordPress calls it
 with the parameter, then the plugin would take precedence and not
 correctly setup up media for editing a post.

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


More information about the wp-trac mailing list