Make WordPress Core

Changeset 27518


Ignore:
Timestamp:
03/13/2014 03:18:42 AM (11 years ago)
Author:
wonderboymusic
Message:

In wp.media.view.AttachmentFilters, when creating its inner HTML content, pass filter.text via .html( str ) instead of .text( str ) to allow more formatting options.

Props tlovett1.
Fixes #25010.

File:
1 edited

Legend:

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

    r27517 r27518  
    52855285            this.$el.html( _.chain( this.filters ).map( function( filter, value ) {
    52865286                return {
    5287                     el: $('<option></option>').val(value).text(filter.text)[0],
     5287                    el: $( '<option></option>' ).val( value ).html( filter.text )[0],
    52885288                    priority: filter.priority || 50
    52895289                };
Note: See TracChangeset for help on using the changeset viewer.