mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@27518 git-svn-id: http://core.svn.wordpress.org/trunk@27361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
326f49688f
commit
8705921741
@ -5284,7 +5284,7 @@
|
||||
// Build `<option>` elements.
|
||||
this.$el.html( _.chain( this.filters ).map( function( filter, value ) {
|
||||
return {
|
||||
el: $('<option></option>').val(value).text(filter.text)[0],
|
||||
el: $( '<option></option>' ).val( value ).html( filter.text )[0],
|
||||
priority: filter.priority || 50
|
||||
};
|
||||
}, this ).sortBy('priority').pluck('el').value() );
|
||||
|
2
wp-includes/js/media-views.min.js
vendored
2
wp-includes/js/media-views.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user