[wp-trac] [WordPress Trac] #34465: Uploading in Media Modal Not updating Media Library Tab
WordPress Trac
noreply at wordpress.org
Tue Oct 27 13:32:56 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 | Keywords:
Focuses: ui |
--------------------------+-----------------------------
I noticed this bug while working on a plugin that deals with the media
modal. I'm using the following code to create a media modal on a button
view:
{{{
function frame(){
// Destroy the previous collection frame.
if ( this._frame )
{
this.stopListening( this._frame );
this._frame.dispose();
}
this._frame = wp.media( {
className: 'media-frame rwmb-
media-frame',
multiple : true,
title : 'Select Media',
library : {
type : 'image',
},
frame: 'select',
} );
//Event stuff goes here
this._frame.open();
},
}}}
The issue is when uploading a file using the upload tab in the media
modal. The file uploads but it never appears in the Media Library tab
like it does in the core media modal used by the editor. The side
Attachment Details panel shows the file information but the file itself
doesn't appear on the grid. Attached is a screen cap from a user of the
plugin.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34465>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list