<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[29212] trunk/src/wp-includes: Media Grid:</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/29212">29212</a></dd>
<dt>Author</dt> <dd>helen</dd>
<dt>Date</dt> <dd>2014-07-17 20:41:40 +0000 (Thu, 17 Jul 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Media Grid:

Instead of a separate bulk selection mode, persistently show a checkbox for each item. Restores the more familiar bulk actions dropdown + action button.

props ericlewis. see <a href="http://core.trac.wordpress.org/ticket/28842">#28842</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpincludescssmediaviewscss">trunk/src/wp-includes/css/media-views.css</a></li>
<li><a href="#trunksrcwpincludesjsmediagridjs">trunk/src/wp-includes/js/media-grid.js</a></li>
<li><a href="#trunksrcwpincludesjsmediaviewsjs">trunk/src/wp-includes/js/media-views.js</a></li>
<li><a href="#trunksrcwpincludesmediatemplatephp">trunk/src/wp-includes/media-template.php</a></li>
<li><a href="#trunksrcwpincludesmediaphp">trunk/src/wp-includes/media.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludescssmediaviewscss"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/css/media-views.css (29211 => 29212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/css/media-views.css        2014-07-17 19:30:41 UTC (rev 29211)
+++ trunk/src/wp-includes/css/media-views.css   2014-07-17 20:41:40 UTC (rev 29212)
</span><span class="lines">@@ -913,7 +913,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .attachment.details .check,
</span><del>-.media-grid-view .attachment .check {
</del><ins>+.media-grid-view .attachment.selected .check {
</ins><span class="cx">   background-color: #1e8cbe;
</span><span class="cx">  -webkit-box-shadow: 0 0 0 1px #fff,
</span><span class="cx">                          0 0 0 2px #1e8cbe;
</span><span class="lines">@@ -921,13 +921,21 @@
</span><span class="cx">                          0 0 0 2px #1e8cbe;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.media-grid-view .attachment .check {
+       display: block;
+}
+
+.media-grid-view .attachment .check div {
+       background-position: 21px 0;
+}
+
</ins><span class="cx"> .attachment.details .check div,
</span><del>-.media-grid-view .attachment .check div {
</del><ins>+.media-grid-view .attachment.selected .check div {
</ins><span class="cx">   background-position: -21px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .attachment.details .check:hover div,
</span><del>-.media-grid-view .attachment .check:hover div {
</del><ins>+.media-grid-view .attachment.selected .check:hover div {
</ins><span class="cx">   background-position: -60px 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1051,7 +1059,7 @@
</span><span class="cx">  display: inline-block;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.attachment:hover .inline-toolbar {
</del><ins>+.attachment-preview:hover ~ .inline-toolbar {
</ins><span class="cx">   display: block;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2600,12 +2608,21 @@
</span><span class="cx">  margin-top: 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.media-grid-view .media-toolbar select {
+       margin-top: 1px;
+       font-size: inherit;
+}
+
+.media-grid-view .attachments-browser .bulk-select {
+       display: inline-block;
+}
+
</ins><span class="cx"> /**
</span><span class="cx">  * Copied styles from the Add theme toolbar.
</span><span class="cx">  *
</span><span class="cx">  * This should be OOCSS'd so both use a shared selector.
</span><span class="cx">  */
</span><del>-.media-grid-view .media-toolbar {
</del><ins>+.media-grid-view .attachments-browser .media-toolbar {
</ins><span class="cx">   background: #fff;
</span><span class="cx">  -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
</span><span class="cx">  box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
</span><span class="lines">@@ -2643,7 +2660,7 @@
</span><span class="cx">  margin: 0 20px 0 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.media-grid-view select.attachment-filters {
</del><ins>+.media-grid-view select {
</ins><span class="cx">   margin: 0 10px 0 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2729,7 +2746,7 @@
</span><span class="cx">  font-weight: 300;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.media-frame.mode-bulk-edit .attachment:hover .inline-toolbar {
</del><ins>+.media-frame.mode-bulk-edit .attachment-preview:hover ~ .inline-toolbar {
</ins><span class="cx">   display: none;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2911,9 +2928,13 @@
</span><span class="cx">  margin-top: 3px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * Media queries for media grid.
+ */
+
</ins><span class="cx"> @media only screen and (max-width: 1120px) {
</span><del>-       .media-grid-view .media-toolbar-primary,
-       .media-grid-view .media-toolbar-secondary {
</del><ins>+        .media-grid-view .attachments-browser .media-toolbar-primary,
+       .media-grid-view .attachments-browser .media-toolbar-secondary {
</ins><span class="cx">           float: none;
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="lines">@@ -2924,4 +2945,3 @@
</span><span class="cx">          max-width: none !important;
</span><span class="cx">  }
</span><span class="cx"> }
</span><del>-
</del></span></pre></div>
<a id="trunksrcwpincludesjsmediagridjs"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/js/media-grid.js (29211 => 29212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/js/media-grid.js   2014-07-17 19:30:41 UTC (rev 29211)
+++ trunk/src/wp-includes/js/media-grid.js      2014-07-17 20:41:40 UTC (rev 29212)
</span><span class="lines">@@ -184,27 +184,25 @@
</span><span class="cx">          },
</span><span class="cx"> 
</span><span class="cx">          createStates: function() {
</span><del>-                       var options = this.options,
-                               libraryState;
</del><ins>+                        var options = this.options;
</ins><span class="cx"> 
</span><span class="cx">                  if ( this.options.states ) {
</span><span class="cx">                          return;
</span><span class="cx">                  }
</span><span class="cx"> 
</span><del>-                       libraryState = new media.controller.Library({
-                               library:    media.query( options.library ),
-                               multiple:   options.multiple,
-                               title:      options.title,
-                               priority:   20,
-                               toolbar:    false,
-                               router:     false,
-                               content:    'browse',
-                               filterable: 'mime-types'
-                       });
-
</del><span class="cx">                   // Add the default states.
</span><span class="cx">                  this.states.add([
</span><del>-                               libraryState
</del><ins>+                                new media.controller.Library({
+                                       library:    media.query( options.library ),
+                                       multiple:   options.multiple,
+                                       title:      options.title,
+                                       priority:   20,
+
+                                       router:     false,
+                                       content:    'browse',
+
+                                       filterable: 'mime-types'
+                               })
</ins><span class="cx">                   ]);
</span><span class="cx">          },
</span><span class="cx"> 
</span><span class="lines">@@ -254,7 +252,6 @@
</span><span class="cx">                          filters:    state.get('filterable'),
</span><span class="cx">                          display:    state.get('displaySettings'),
</span><span class="cx">                          dragInfo:   state.get('dragInfo'),
</span><del>-                               bulkEdit:   true,
</del><span class="cx">                           sidebar:    false,
</span><span class="cx"> 
</span><span class="cx">                          suggestedWidth:  state.get('suggestedWidth'),
</span><span class="lines">@@ -606,55 +603,81 @@
</span><span class="cx">          }
</span><span class="cx">  });
</span><span class="cx"> 
</span><del>-       media.view.BulkSelectionToggleButton = media.view.Button.extend({
</del><ins>+        media.view.BulkSelection = media.View.extend({
+               className: 'bulk-select',
+
</ins><span class="cx">           initialize: function() {
</span><del>-                       media.view.Button.prototype.initialize.apply( this, arguments );
-                       this.listenTo( this.controller, 'bulk-edit:activate bulk-edit:deactivate', _.bind( this.toggleBulkEditHandler, this ) );
-               },
</del><ins>+                        this.model = new Backbone.Model({
+                               currentAction: '',
</ins><span class="cx"> 
</span><del>-               click: function() {
-                       var bulkEditActive = this.controller.activeModes.where( { id: 'bulk-edit' } ).length;
-                       media.view.Button.prototype.click.apply( this, arguments );
</del><ins>+                        });
</ins><span class="cx"> 
</span><del>-                       if ( bulkEditActive ) {
-                               this.controller.deactivateMode( 'bulk-edit' ).activateMode( 'edit' );
-                       } else {
-                               this.controller.deactivateMode( 'edit' ).activateMode( 'bulk-edit' );
-                       }
-               },
</del><ins>+                        this.views.add(
+                               new media.view.BulkSelectionActionDropdown({
+                                       controller: this
+                               })
+                       );
</ins><span class="cx"> 
</span><del>-               toggleBulkEditHandler: function() {
-                       var bulkEditActive = this.controller.activeModes.where( { id: 'bulk-edit' } ).length;
-                       if ( bulkEditActive ) {
-                               this.$el.addClass( 'button-primary' );
-                       } else {
-                               this.$el.removeClass( 'button-primary' );
-                               this.controller.state().get('selection').reset();
-                       }
</del><ins>+                        this.views.add(
+                               new media.view.BulkSelectionActionButton({
+                                       disabled:   true,
+                                       text:       l10n.apply,
+                                       controller: this
+                               })
+                       );
</ins><span class="cx">           }
</span><span class="cx">  });
</span><span class="cx"> 
</span><del>-       media.view.BulkDeleteButton = media.view.Button.extend({
</del><ins>+        media.view.BulkSelectionActionDropdown = media.View.extend({
+               tagName:   'select',
+
+               initialize: function() {
+                       media.view.Button.prototype.initialize.apply( this, arguments );
+                       this.listenTo( this.controller.controller.state().get( 'selection' ), 'add remove reset', _.bind( this.enabled, this ) );
+                       this.$el.append( $('<option></option>').val( '' ).html( l10n.bulkActions ) )
+                               .append( $('<option></option>').val( 'delete' ).html( l10n.deletePermanently ) );
+                       this.$el.prop( 'disabled', true );
+                       this.$el.on( 'change', _.bind( this.toggleChange, this ) );
+               },
+
+               toggleChange: function() {
+                       this.controller.model.set( { 'currentAction': this.$el.val() } );
+               },
+               enabled: function() {
+                       var disabled = ! this.controller.controller.state().get('selection').length;
+                       this.$el.prop( 'disabled', disabled );
+               }
+       });
+
+       media.view.BulkSelectionActionButton = media.view.Button.extend({
+               tagName: 'button',
+
</ins><span class="cx">           initialize: function() {
</span><span class="cx">                  media.view.Button.prototype.initialize.apply( this, arguments );
</span><del>-                       this.$el.hide();
-                       this.listenTo( this.controller, 'bulk-edit:activate bulk-edit:deactivate', _.bind( this.visibility, this ) );
</del><ins>+
+                       this.listenTo( this.controller.model, 'change', this.enabled, this );
+                       this.listenTo( this.controller.controller.state().get( 'selection' ), 'add remove reset', _.bind( this.enabled, this ) );
</ins><span class="cx">           },
</span><span class="cx"> 
</span><span class="cx">          click: function() {
</span><ins>+                       var selection = this.controller.controller.state().get('selection');
</ins><span class="cx">                   media.view.Button.prototype.click.apply( this, arguments );
</span><del>-                       while (this.controller.state().get('selection').length > 0) {
-                               this.controller.state().get('selection').at(0).destroy();
</del><ins>+
+                       // Currently assumes delete is the only action
+                       if ( confirm( l10n.warnBulkDelete ) ) {
+                               while ( selection.length > 0) {
+                                       selection.at(0).destroy();
+                               }
</ins><span class="cx">                   }
</span><ins>+
+                       this.enabled();
</ins><span class="cx">           },
</span><span class="cx"> 
</span><del>-               visibility: function() {
-                       var bulkEditActive = this.controller.activeModes.where( { id: 'bulk-edit' } ).length;
-                       if ( bulkEditActive ) {
-                               this.$el.show();
-                       } else {
-                               this.$el.hide();
-                       }
</del><ins>+                enabled: function() {
+                       var currentAction = this.controller.model.get( 'currentAction' ),
+                               selection = this.controller.controller.state().get('selection'),
+                               disabled = ! currentAction || ! selection.length;
+                       this.$el.prop( 'disabled', disabled );
</ins><span class="cx">           }
</span><span class="cx">  });
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunksrcwpincludesjsmediaviewsjs"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/js/media-views.js (29211 => 29212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/js/media-views.js  2014-07-17 19:30:41 UTC (rev 29211)
+++ trunk/src/wp-includes/js/media-views.js     2014-07-17 20:41:40 UTC (rev 29212)
</span><span class="lines">@@ -4619,7 +4619,7 @@
</span><span class="cx">                  'change [data-setting] select':   'updateSetting',
</span><span class="cx">                  'change [data-setting] textarea': 'updateSetting',
</span><span class="cx">                  'click .close':                   'removeFromLibrary',
</span><del>-                       'click .check':                   'removeFromSelection',
</del><ins>+                        'click .check':                   'checkClickHandler',
</ins><span class="cx">                   'click a':                        'preventDefault',
</span><span class="cx">                  'keydown':                        'toggleSelectionHandler'
</span><span class="cx">          },
</span><span class="lines">@@ -4879,12 +4879,8 @@
</span><span class="cx">                          return;
</span><span class="cx">                  }
</span><span class="cx"> 
</span><del>-                       // In bulk edit mode (in media grid), attachments don't open the "details"
-                       // pane, so a `details` class is unnecessary on the attachment view.
-                       if ( ! this.controller.isModeActive( 'bulk-edit' ) ) {
-                               details = selection.single();
-                               this.$el.toggleClass( 'details', details === this.model );
-                       }
</del><ins>+                        details = selection.single();
+                       this.$el.toggleClass( 'details', details === this.model );
</ins><span class="cx">           },
</span><span class="cx">          /**
</span><span class="cx">           * @param {Object} event
</span><span class="lines">@@ -5015,19 +5011,25 @@
</span><span class="cx"> 
</span><span class="cx">                  this.collection.remove( this.model );
</span><span class="cx">          },
</span><ins>+
</ins><span class="cx">           /**
</span><del>-                * @param {Object} event
</del><ins>+                 * Add the model if it isn't in the selection, if it is in the selection,
+                * remove it.
+                *
+                * @param  {[type]} event [description]
+                * @return {[type]}       [description]
</ins><span class="cx">            */
</span><del>-               removeFromSelection: function( event ) {
</del><ins>+                checkClickHandler: function ( event ) {
</ins><span class="cx">                   var selection = this.options.selection;
</span><span class="cx">                  if ( ! selection ) {
</span><span class="cx">                          return;
</span><span class="cx">                  }
</span><del>-
-                       // Stop propagation so the model isn't selected.
</del><span class="cx">                   event.stopPropagation();
</span><del>-
-                       selection.remove( this.model );
</del><ins>+                        if ( selection.where( { id: this.model.get( 'id' ) } ).length ) {
+                               selection.remove( this.model );
+                       } else {
+                               selection.add( this.model );
+                       }
</ins><span class="cx">           }
</span><span class="cx">  });
</span><span class="cx"> 
</span><span class="lines">@@ -5657,17 +5659,10 @@
</span><span class="cx">                                  priority: -90
</span><span class="cx">                          }).render() );
</span><span class="cx"> 
</span><del>-                               this.toolbar.set( 'bulkSelectionToggleButton', new media.view.BulkSelectionToggleButton({
-                                       text: 'Bulk Edit',
-                                       controller: this.controller,
-                                       priority: -70
-                               }).render() );
-
-                               this.toolbar.set( 'BulkDeleteButton', new media.view.BulkDeleteButton({
-                                       text: 'Bulk Delete',
-                                       controller: this.controller,
-                                       priority: -69
-                               }).render() );
</del><ins>+                                this.toolbar.set( 'BulkSelection', new media.view.BulkSelection({
+                                       controller: this.controller,
+                                       priority: -70
+                               }).render() );
</ins><span class="cx">                   }
</span><span class="cx"> 
</span><span class="cx">                  filters = this.options.filters;
</span></span></pre></div>
<a id="trunksrcwpincludesmediatemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/media-template.php (29211 => 29212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/media-template.php 2014-07-17 19:30:41 UTC (rev 29211)
+++ trunk/src/wp-includes/media-template.php    2014-07-17 20:41:40 UTC (rev 29212)
</span><span class="lines">@@ -397,11 +397,6 @@
</span><span class="cx">  </script>
</span><span class="cx"> 
</span><span class="cx">  <script type="text/html" id="tmpl-attachment">
</span><del>-               <# if ( _.contains( data.controller.options.mode, 'grid' ) ) { #>
-               <div class="inline-toolbar js--select-attachment">
-                       <div class="dashicons dashicons-edit edit edit-media"></div>
-               </div>
-               <# } #>
</del><span class="cx">           <div class="attachment-preview js--select-attachment type-{{ data.type }} subtype-{{ data.subtype }} {{ data.orientation }}">
</span><span class="cx">                  <# if ( data.uploading ) { #>
</span><span class="cx">                          <div class="media-progress-bar"><div></div></div>
</span><span class="lines">@@ -424,11 +419,15 @@
</span><span class="cx">                  <# if ( data.buttons.close ) { #>
</span><span class="cx">                          <a class="close media-modal-icon" href="#" title="<?php esc_attr_e('Remove'); ?>"></a>
</span><span class="cx">                  <# } #>
</span><del>-
-                       <# if ( data.buttons.check ) { #>
-                               <a class="check" href="#" title="<?php esc_attr_e('Deselect'); ?>" tabindex="-1"><div class="media-modal-icon"></div></a>
-                       <# } #>
</del><span class="cx">           </div>
</span><ins>+               <# if ( _.contains( data.controller.options.mode, 'grid' ) ) { #>
+               <div class="inline-toolbar js--select-attachment">
+                       <div class="dashicons dashicons-edit edit edit-media"></div>
+               </div>
+               <# } #>
+               <# if ( data.buttons.check ) { #>
+                       <a class="check" href="#" title="<?php esc_attr_e('Deselect'); ?>" tabindex="-1"><div class="media-modal-icon"></div></a>
+               <# } #>
</ins><span class="cx">           <#
</span><span class="cx">          var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly';
</span><span class="cx">          if ( data.describe ) {
</span></span></pre></div>
<a id="trunksrcwpincludesmediaphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-includes/media.php (29211 => 29212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-includes/media.php  2014-07-17 19:30:41 UTC (rev 29211)
+++ trunk/src/wp-includes/media.php     2014-07-17 20:41:40 UTC (rev 29212)
</span><span class="lines">@@ -2896,18 +2896,22 @@
</span><span class="cx">          'uploadImagesTitle' => __( 'Upload Images' ),
</span><span class="cx"> 
</span><span class="cx">          // Library
</span><del>-               'mediaLibraryTitle'  => __( 'Media Library' ),
-               'insertMediaTitle'   => __( 'Insert Media' ),
-               'createNewGallery'   => __( 'Create a new gallery' ),
-               'createNewPlaylist'   => __( 'Create a new playlist' ),
-               'createNewVideoPlaylist'   => __( 'Create a new video playlist' ),
-               'returnToLibrary'    => __( '&#8592; Return to library' ),
-               'allMediaItems'      => __( 'All media items' ),
-               'allMediaTypes'      => __( 'All media types' ),
-               'noItemsFound'       => __( 'No items found.' ),
-               'insertIntoPost'     => $hier ? __( 'Insert into page' ) : __( 'Insert into post' ),
-               'uploadedToThisPost' => $hier ? __( 'Uploaded to this page' ) : __( 'Uploaded to this post' ),
-               'warnDelete' =>      __( "You are about to permanently delete this item.\n  'Cancel' to stop, 'OK' to delete." ),
</del><ins>+                'mediaLibraryTitle'      => __( 'Media Library' ),
+               'insertMediaTitle'       => __( 'Insert Media' ),
+               'createNewGallery'       => __( 'Create a new gallery' ),
+               'createNewPlaylist'      => __( 'Create a new playlist' ),
+               'createNewVideoPlaylist' => __( 'Create a new video playlist' ),
+               'returnToLibrary'        => __( '&#8592; Return to library' ),
+               'allMediaItems'          => __( 'All media items' ),
+               'allMediaTypes'          => __( 'All media types' ),
+               'noItemsFound'           => __( 'No items found.' ),
+               'insertIntoPost'         => $hier ? __( 'Insert into page' ) : __( 'Insert into post' ),
+               'uploadedToThisPost'     => $hier ? __( 'Uploaded to this page' ) : __( 'Uploaded to this post' ),
+               'warnDelete'             => __( "You are about to permanently delete this item.\n  'Cancel' to stop, 'OK' to delete." ),
+               'warnBulkDelete'         => __( "You are about to permanently delete these items.\n  'Cancel' to stop, 'OK' to delete." ),
+               'bulkActions'            => __( 'Bulk Actions' ),
+               'deletePermanently'      => __( 'Delete Permanently' ),
+               'apply'                  => __( 'Apply' ),
</ins><span class="cx"> 
</span><span class="cx">          // Library Details
</span><span class="cx">          'attachmentDetails'  => __( 'Attachment Details' ),
</span></span></pre>
</div>
</div>

</body>
</html>