[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
Mon May 12 17:52:15 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: | Focuses: administration
--------------------------+------------------------------
Comment (by bobbingwide):
What was surprising was that the problem only occurred when the post type
did not support thumbnails. When 'thumbnail's are supported the first call
to wp_enqueue_media() DOES pass the post ID
{{{
0. bw_lazy_backtrace C:\apache\htdocs\wp-
content\plugins\oik\bwtrace.inc:59 0
1. bw_backtrace C:\apache\htdocs\wp-includes\media.php:2654 0
2. wp_enqueue_media(Array) C:\apache\htdocs\wp-admin\edit-form-
advanced.php:38 1
3. include(C:\apache\htdocs\wp-admin\edit-form-advanced.php)
C:\apache\htdocs\wp-admin\post.php:211 1
C:\apache\htdocs\wp-includes\media.php(2655:0) 2014-05-12T17:32:23+00:00
51 cf! 28 184 26735752/27056480 wp_enqueue_media(2) 1 Array
(
[post] => 184
)
}}}
So the calls performed by EDD, WordPress-SEO and then 'media_buttons' are
getting ignored.
This suggests to me that the problem is also associated with edit-form-
advanced.php
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28219#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list