[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
Wed Jun 4 11:52:22 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: normal | Resolution:
Keywords: reporter-feedback | Focuses: administration
-------------------------------+------------------------------
Comment (by bobbingwide):
Hi, details for how to reproduce the problem are here:
http://rowlandscastlewebdesign.co.uk/?p=1#more-1
You will see that I raised the problem with Easy Digital Downloads as
https://easydigitaldownloads.com/support/topic/add-media-not-attaching-
files-to-certain-cpts-wordpress-3-9/#post-235070
I suggested that the fix to EDD would appear to be to remove the call to
wp_enqueue_media() in edd_load_admin_scripts().
When I first analysed / resolved the problem I discovered it when I
deactivated EDD.
But I’d deactivated WordPress SEO first.
Had I performed the deactivations in a different order it would have been
WordPress SEO that would have appeared to be at fault.
I originally believed that neither plugin needed to call
wp_enqueue_media().
Now, with wp_enqueue_media() being called multiple times in WordPress, I
feel that the problem could be resolved by moving the did_action() test to
just before the invocation of the 'wp_enqueue_media' action.
BTW. I didn't get a response from Yoast.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28219#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list