diff --git a/wp-includes/js/media-editor.js b/wp-includes/js/media-editor.js index a51fb148c5..2197abd165 100644 --- a/wp-includes/js/media-editor.js +++ b/wp-includes/js/media-editor.js @@ -440,7 +440,7 @@ shortcode: function( attachments ) { var props = attachments.props.toJSON(), attrs = _.pick( props, 'orderby', 'order' ), - shortcode, clone, self = this; + shortcode, clone; if ( attachments.type ) { attrs.type = attachments.type; diff --git a/wp-includes/js/media-grid.js b/wp-includes/js/media-grid.js index f22c7ea1ea..00d0a6c40c 100644 --- a/wp-includes/js/media-grid.js +++ b/wp-includes/js/media-grid.js @@ -170,7 +170,7 @@ /** * Open the Edit Attachment modal. */ - openEditAttachmentModal: function( model, currentTarget ) { + openEditAttachmentModal: function( model ) { // Create a new EditAttachment frame, passing along the library and the attachment model. wp.media( { frame: 'edit-attachments',