Ticket #22722: 22722.2.diff
| File 22722.2.diff, 904 bytes (added by koopersmith, 6 months ago) |
|---|
-
wp-includes/js/media-views.js
3317 3317 3318 3318 initialize: function() { 3319 3319 this.createFilters(); 3320 _.extend( this.filters, this.options.filters ); 3320 3321 3321 3322 // Build `<option>` elements. 3322 3323 this.$el.html( _.chain( this.filters ).map( function( filter, value ) { … … 3361 3362 3362 3363 media.view.AttachmentFilters.Uploaded = media.view.AttachmentFilters.extend({ 3363 3364 createFilters: function() { 3365 var type = this.model.get('type'), 3366 types = media.view.settings.mimeTypes, 3367 text; 3368 3369 if ( types && type ) 3370 text = types[ type ]; 3371 3364 3372 this.filters = { 3365 3373 all: { 3366 text: l10n.allMediaItems,3374 text: text || l10n.allMediaItems, 3367 3375 props: { 3368 3376 uploadedTo: null, 3369 3377 orderby: 'date',
