diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index b72aa75413..ed871747a6 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -409,7 +409,8 @@ options = _.defaults( this.model.toJSON(), { orientation: 'landscape', uploading: false, - type: '' + type: '', + subtype: '' }); options.buttons = this.buttons; diff --git a/wp-includes/media.php b/wp-includes/media.php index 796f00d7f3..6d72e3d30b 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1340,8 +1340,6 @@ function wp_print_media_templates( $attachment ) {
<%- filename %>
<% } %> - - <% if ( buttons.close ) { %> × <% } %>