[wp-trac] [WordPress Trac] #26587: wp.media library argument post__not_in breaks the uploads
WordPress Trac
noreply at wordpress.org
Thu Dec 12 22:25:40 UTC 2013
#26587: wp.media library argument post__not_in breaks the uploads
--------------------------+-----------------------------
Reporter: ciantic | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.8
Severity: normal | Keywords:
--------------------------+-----------------------------
1. Open any page with media uploader, type in JavaScript console:
`wp.media({library : { post__not_in : [123]}}).open()`
2. Then try to upload a file.
Notice that the Select file button does not work, new uploads does not
show the progress bar nor the item being uploaded in the attachment area.
However `post__not_in` itself works in `wp_ajax_query_attachments`
correctly by filtering only given attachment ID's from the list.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26587>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list