From abf794f75c2c1ec46f9fdcf2212b263865f5d575 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 13 Mar 2014 03:18:42 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@27518 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-views.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js index b3cee6ed6a..0d396cf14a 100644 --- a/src/wp-includes/js/media-views.js +++ b/src/wp-includes/js/media-views.js @@ -5284,7 +5284,7 @@ // Build `').val(value).text(filter.text)[0], + el: $( '' ).val( value ).html( filter.text )[0], priority: filter.priority || 50 }; }, this ).sortBy('priority').pluck('el').value() );