From 108b0feaedd1cb5735bfea2ee0aedc4b4950ff77 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Tue, 9 Oct 2012 00:21:52 +0000 Subject: [PATCH] Remove the attachment quick-insert button from the media modal. see #21390. git-svn-id: http://core.svn.wordpress.org/trunk@22138 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/media-views.js | 25 ------------------------- wp-includes/media.php | 4 ---- 2 files changed, 29 deletions(-) diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index 34eddb6bc3..5af98e67bc 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -519,26 +519,6 @@ } }); - /** - * wp.media.view.Attachment.Library - */ - media.view.Attachment.Library = media.view.Attachment.extend({ - className: 'attachment library', - - buttons: { - insert: true - }, - - events: _.defaults({ - 'click .insert': 'insert' - }, media.view.Attachment.prototype.events ), - - insert: function() { - this.controller.selection.reset([ this.model ]); - this.controller.update(); - } - }); - /** * wp.media.view.Attachment.Gallery */ @@ -650,11 +630,6 @@ */ media.view.Workspace.Library = media.view.Workspace.extend({ - attachmentsView: { - // The single `Attachment` view to be used in the `Attachments` view. - AttachmentView: media.view.Attachment.Library - }, - initialize: function() { media.view.Workspace.prototype.initialize.apply( this, arguments ); diff --git a/wp-includes/media.php b/wp-includes/media.php index e36c2176b2..5ff9ee9083 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1346,10 +1346,6 @@ function wp_print_media_templates( $attachment ) { <% if ( buttons.close ) { %> × <% } %> - - <% if ( buttons.insert ) { %> - - <% } %>