`wp.media` instead of just `media`. props alexkingorg, see #22676.
git-svn-id: http://core.svn.wordpress.org/trunk@22974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7677c12566
commit
d8c942f26c
|
@ -157,7 +157,7 @@ window.wp = window.wp || {};
|
|||
date: new Date(),
|
||||
filename: file.name,
|
||||
menuOrder: 0,
|
||||
uploadedTo: media.model.settings.postId
|
||||
uploadedTo: wp.media.model.settings.postId
|
||||
}, _.pick( file, 'loaded', 'size', 'percent' ) );
|
||||
|
||||
// Handle early mime type scanning for images.
|
||||
|
|
Loading…
Reference in New Issue