[wp-trac] [WordPress Trac] #34465: Uploading in Media Modal Not updating Media Library Tab
WordPress Trac
noreply at wordpress.org
Tue Nov 10 17:10:04 UTC 2015
#34465: Uploading in Media Modal Not updating Media Library Tab
-------------------------------------------+------------------------------
Reporter: Funkatronic | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-screenshots needs-testing | Focuses: ui
-------------------------------------------+------------------------------
Changes (by Funkatronic):
* keywords: has-screenshots => has-screenshots needs-testing
Comment:
Alright, found the cause of the problem but not sure of a solution. In my
code, I'm using exclude to exclude certain files each time I open the
media modal. Apparently using exclude prevents the browser part of the
modal from being updated when I upload a file in the same modal.
Definitely considered a bug in my book but I'm not sure how to resolve
this.
The code to replicate the bug is such:
{{{
function frame(){
var frame = wp.media( {
className: 'media-frame rwmb-media-frame',
multiple : true,
title : 'Select Media',
library : {
type : 'image',
exclude: [] //put excluded file ids here
},
frame: 'select',
} );
this._frame.open();
};
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34465#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list