Media JS: Use basic upload/library by default.

`wp.media` now recognizes the `frame` attribute (currently a string; either'select' or 'post') and defaults to using a basic select frame. It also checks for the existence of classes in a safer fashion, as it does not assume the `MediaFrame` property exists.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22495 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2012-11-09 09:59:36 +00:00
parent 1401ee7928
commit 63dd1ca518
3 changed files with 20 additions and 3 deletions
+1
View File
@@ -103,6 +103,7 @@ var tb_position;
return workflow;
workflow = workflows[ id ] = wp.media( _.defaults( options || {}, {
frame: 'post',
title: wp.media.view.l10n.insertMedia,
multiple: true
} ) );