WordPress.org

Make WordPress Core

Changeset 23041


Ignore:
Timestamp:
12/04/2012 08:51:37 PM (5 years ago)
Author:
nacin
Message:

When adding images to a gallery, use "Images" as the filter name, rather than "All media items". props koopersmith. fixes #22722.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r23037 r23041  
    33183318        initialize: function() {
    33193319            this.createFilters();
     3320            _.extend( this.filters, this.options.filters );
    33203321
    33213322            // Build `<option>` elements.
     
    33623363    media.view.AttachmentFilters.Uploaded = media.view.AttachmentFilters.extend({
    33633364        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
    33643372            this.filters = {
    33653373                all: {
    3366                     text:  l10n.allMediaItems,
     3374                    text:  text || l10n.allMediaItems,
    33673375                    props: {
    33683376                        uploadedTo: null,
Note: See TracChangeset for help on using the changeset viewer.