Enhanced Media Library - Version 2.7.1

Version Description

Download this release

Release Info

Developer webbistro
Plugin Icon 128x128 Enhanced Media Library
Version 2.7.1
Comparing to
See all releases

Code changes from version 2.7 to 2.7.1

core/medialist.php CHANGED
@@ -87,13 +87,12 @@ if ( ! function_exists( 'wpuxss_eml_shortcode_atts' ) ) {
87
 
88
  if ( ! empty( $atts['type'] ) ) {
89
  $mime_type = $atts['type'];
90
- unset( $atts['type'] );
91
- }
92
- // @todo is it nessecary?
93
- elseif ( ! empty( $output['type'] ) ) {
94
- $mime_type = $output['type'];
95
- unset( $output['type'] );
96
  }
 
 
 
 
 
97
  else {
98
  $mime_type = 'image';
99
  }
@@ -146,6 +145,7 @@ if ( ! function_exists( 'wpuxss_eml_shortcode_atts' ) ) {
146
 
147
 
148
  $output = $atts;
 
149
 
150
 
151
  if ( $ids ) {
87
 
88
  if ( ! empty( $atts['type'] ) ) {
89
  $mime_type = $atts['type'];
 
 
 
 
 
 
90
  }
91
+ // @todo
92
+ // elseif ( ! empty( $output['type'] ) ) {
93
+ // $mime_type = $output['type'];
94
+ // unset( $output['type'] );
95
+ // }
96
  else {
97
  $mime_type = 'image';
98
  }
145
 
146
 
147
  $output = $atts;
148
+ $output['id'] = $id; // shortcodes require it!
149
 
150
 
151
  if ( $ids ) {
enhanced-media-library.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Enhanced Media Library
4
  Plugin URI: http://wpUXsolutions.com
5
  Description: This plugin will be handy for those who need to manage a lot of media files.
6
- Version: 2.7
7
  Author: wpUXsolutions
8
  Author URI: http://wpUXsolutions.com
9
  Text Domain: enhanced-media-library
@@ -26,7 +26,7 @@ global $wp_version,
26
 
27
 
28
 
29
- if ( ! defined('EML_VERSION') ) define( 'EML_VERSION', '2.7' );
30
 
31
 
32
 
3
  Plugin Name: Enhanced Media Library
4
  Plugin URI: http://wpUXsolutions.com
5
  Description: This plugin will be handy for those who need to manage a lot of media files.
6
+ Version: 2.7.1
7
  Author: wpUXsolutions
8
  Author URI: http://wpUXsolutions.com
9
  Text Domain: enhanced-media-library
26
 
27
 
28
 
29
+ if ( ! defined('EML_VERSION') ) define( 'EML_VERSION', '2.7.1' );
30
 
31
 
32
 
js/eml-media-views.js CHANGED
@@ -147,7 +147,7 @@ window.eml = window.eml || { l10n: {} };
147
  }
148
 
149
  if ( toolbar ) {
150
- emlMessage = success ? toolbar.primary.get( 'emlAttachmentSuccess' ) : toolbar.primary.get( 'emlAttachmentError' );
151
 
152
  emlMessage.$el.fadeIn( 200 );
153
  setTimeout( function() {
@@ -615,25 +615,11 @@ window.eml = window.eml || { l10n: {} };
615
 
616
  remove: function() {
617
 
618
- var result,
619
- toolbar;
620
-
621
-
622
- if ( 'edit-attachment' !== this.controller._state ) {
623
-
624
- toolbar = this.controller.toolbar.get();
625
-
626
- toolbar.primary.get( 'emlAttachmentSuccess' ).$el.remove();
627
- toolbar.primary.get( 'emlAttachmentError' ).$el.remove();
628
- }
629
-
630
  if ( this.controller.isModeActive( 'eml-grid' ) ) {
631
  this.controller.browserView.toggleSidebar();
632
  }
633
 
634
- result = media.View.prototype.remove.apply( this, arguments );
635
-
636
- return result;
637
  },
638
 
639
  deleteAttachment: function( event ) {
@@ -913,7 +899,7 @@ window.eml = window.eml || { l10n: {} };
913
  }).render() );
914
 
915
  if ( mediaTrash ) {
916
- toolbar.secondary.set( 'emlDeleteSelectedPermanentlyButton', new media.view.emlDeleteSelectedPermanentlyButton({
917
  filters: Filters,
918
  style: 'primary',
919
  disabled: true,
@@ -1079,8 +1065,6 @@ window.eml = window.eml || { l10n: {} };
1079
  var sidebar = this.sidebar,
1080
  single = this.options.selection.single();
1081
 
1082
- sidebar.unset( 'details' );
1083
-
1084
  if ( 'trash' !== this.options.selection.at( 0 ).get( 'status' ) ) {
1085
  sidebar.set( 'details', new wp.media.view.emlGridAttachmentDetails({
1086
  controller: this.controller,
147
  }
148
 
149
  if ( toolbar ) {
150
+ emlMessage = success ? toolbar.get( 'emlAttachmentSuccess' ) : toolbar.get( 'emlAttachmentError' );
151
 
152
  emlMessage.$el.fadeIn( 200 );
153
  setTimeout( function() {
615
 
616
  remove: function() {
617
 
 
 
 
 
 
 
 
 
 
 
 
 
618
  if ( this.controller.isModeActive( 'eml-grid' ) ) {
619
  this.controller.browserView.toggleSidebar();
620
  }
621
 
622
+ return media.View.prototype.remove.apply( this, arguments );
 
 
623
  },
624
 
625
  deleteAttachment: function( event ) {
899
  }).render() );
900
 
901
  if ( mediaTrash ) {
902
+ toolbar.set( 'emlDeleteSelectedPermanentlyButton', new media.view.emlDeleteSelectedPermanentlyButton({
903
  filters: Filters,
904
  style: 'primary',
905
  disabled: true,
1065
  var sidebar = this.sidebar,
1066
  single = this.options.selection.single();
1067
 
 
 
1068
  if ( 'trash' !== this.options.selection.at( 0 ).get( 'status' ) ) {
1069
  sidebar.set( 'details', new wp.media.view.emlGridAttachmentDetails({
1070
  controller: this.controller,
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: media library, media category, media categories, media gallery, gallery sh
4
  Requires at least: 4.5
5
  Tested up to: 4.9.9
6
  Requires PHP: 5.6
7
- Stable tag: 2.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -172,6 +172,17 @@ Additional comfort and even more convenient way to organize WordPress media libr
172
 
173
  ## Changelog ##
174
 
 
 
 
 
 
 
 
 
 
 
 
175
  ### 2.7 ###
176
  *Release Date - September 10, 2018*
177
 
4
  Requires at least: 4.5
5
  Tested up to: 4.9.9
6
  Requires PHP: 5.6
7
+ Stable tag: 2.7.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
172
 
173
  ## Changelog ##
174
 
175
+ ### 2.7.1 ###
176
+ *Release Date - September 11, 2018*
177
+ *v2.7 bugfixes*
178
+
179
+ = Bugfixes =
180
+ * `[playlist]` broken shortcode bug fixed
181
+ * "Image not uploading", "Can't add featured image", "Media library right sidebar gone" and possibly some other situations common bug fixed. Please notice, for those who use Smush (WP Smush It) plugin the issue is not fixed because the fix requires a collaboration with the Smush author. Follow [Update Broke Uploader](https://wordpress.org/support/topic/update-broke-uploader/) support thread to know the temporary solution.
182
+ * PRO only: hidden filters bug fixed
183
+ * A few minor bug fixed, some minor code improvements made
184
+
185
+
186
  ### 2.7 ###
187
  *Release Date - September 10, 2018*
188