[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:25:33 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):

 In the WordPress SEO plugin (and possible EDD) the issue seems to be that
 wp_enqueue_media() is called without passing a post ID when editing a
 post. See fix here:
 https://github.com/Yoast/wordpress-
 seo/commit/a7d52c2dc481c8099d2245ab1fdcfa45b6869753

 From this point of view it would seem not to be an issue with core.

 However, say wp_enqueue_media() is called multiple times when editing a
 post, by WordPress and potentially multiple plugins. If some of those
 called specify a post ID and some do not I'm not sure which would take
 precedence?

 If wp_enqueue_media() is called multiple times one of which includes a
 post ID, should it forced to be enqueued with the Post ID?

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


More information about the wp-trac mailing list