diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php
index 796efe7540..b9b92f5c04 100644
--- a/wp-admin/includes/meta-boxes.php
+++ b/wp-admin/includes/meta-boxes.php
@@ -1055,6 +1055,8 @@ function post_thumbnail_meta_box( $post ) {
frame = wp.media( options );
+ frame.get('library').set( 'filterable', 'uploaded' );
+
frame.toolbar.on( 'activate:select', function() {
frame.toolbar.view().set({
select: {
diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js
index eb846f821b..3ba90e30ae 100644
--- a/wp-includes/js/media-views.js
+++ b/wp-includes/js/media-views.js
@@ -1368,7 +1368,7 @@
selection: options.selection,
library: media.query( options.library ),
editable: true,
- filterable: true
+ filterable: 'all'
}, main ) ),
new media.controller.Upload( main ),
@@ -1384,8 +1384,9 @@
}),
new media.controller.Library( _.defaults({
- id: 'gallery-library',
- library: media.query({ type: 'image' })
+ id: 'gallery-library',
+ library: media.query({ type: 'image' }),
+ filterable: 'uploaded'
}, gallery ) ),
new media.controller.Upload( _.defaults({
@@ -2766,6 +2767,68 @@
change: 'change'
},
+ filters: {},
+ keys: [],
+
+ initialize: function() {
+ // Build `