Enhanced Media Library - Version 2.0.4.8

Version Description

Release Date - September 14, 2015

Download this release

Release Info

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

Code changes from version 2.0.4.7 to 2.0.4.8

core/taxonomies.php CHANGED
@@ -369,45 +369,46 @@ if( ! function_exists( 'wpuxss_eml_dropdown_cats' ) ) {
369
 
370
  global $current_screen;
371
 
372
- if ( ! is_admin() ) {
373
  return $output;
374
  }
375
 
376
  $media_library_mode = get_user_option( 'media_library_mode' ) ? get_user_option( 'media_library_mode' ) : 'grid';
377
 
378
- if ( isset( $current_screen ) && 'upload' === $current_screen->base && 'list' === $media_library_mode )
 
 
 
 
 
 
 
379
  {
380
- $whole_select = $output;
381
-
382
- $options_array = array();
383
- while ( strlen( $whole_select ) >= 7 && false !== ( $option_pos = strpos( $whole_select, '<option', 7 ) ) )
384
- {
385
- $options_array[] = substr($whole_select, 0, $option_pos);
386
- $whole_select = substr($whole_select, $option_pos);
387
- }
388
- $options_array[] = $whole_select;
389
-
390
- $new_output = '';
391
-
392
- if ( isset( $r['show_option_in'] ) && $r['show_option_in'] )
393
- {
394
- $show_option_in = $r['show_option_in'];
395
- $selected = ( 'in' === strval($r['selected']) ) ? " selected='selected'" : '';
396
- $new_output .= "\t<option value='in'$selected>$show_option_in</option>\n";
397
- }
398
 
399
- if ( isset( $r['show_option_not_in'] ) && $r['show_option_not_in'] )
400
- {
401
- $show_option_not_in = $r['show_option_not_in'];
402
- $selected = ( 'not_in' === strval($r['selected']) ) ? " selected='selected'" : '';
403
- $new_output .= "\t<option value='not_in'$selected>$show_option_not_in</option>\n";
404
- }
405
-
406
- array_splice( $options_array, 2, 0, $new_output );
407
-
408
- $output = implode('', $options_array);
 
 
 
 
409
  }
410
 
 
 
 
 
411
  return $output;
412
  }
413
  }
369
 
370
  global $current_screen;
371
 
372
+ if ( ! is_admin() || empty( $output ) ) {
373
  return $output;
374
  }
375
 
376
  $media_library_mode = get_user_option( 'media_library_mode' ) ? get_user_option( 'media_library_mode' ) : 'grid';
377
 
378
+ if ( ! isset( $current_screen ) || 'upload' !== $current_screen->base || 'list' !== $media_library_mode ) {
379
+ return $output;
380
+ }
381
+
382
+ $whole_select = $output;
383
+ $options_array = array();
384
+
385
+ while ( strlen( $whole_select ) >= 7 && false !== ( $option_pos = strpos( $whole_select, '<option', 7 ) ) )
386
  {
387
+ $options_array[] = substr($whole_select, 0, $option_pos);
388
+ $whole_select = substr($whole_select, $option_pos);
389
+ }
390
+ $options_array[] = $whole_select;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
391
 
392
+ $new_output = '';
393
+
394
+ if ( isset( $r['show_option_in'] ) && $r['show_option_in'] )
395
+ {
396
+ $show_option_in = $r['show_option_in'];
397
+ $selected = ( 'in' === strval($r['selected']) ) ? " selected='selected'" : '';
398
+ $new_output .= "\t<option value='in'$selected>$show_option_in</option>\n";
399
+ }
400
+
401
+ if ( isset( $r['show_option_not_in'] ) && $r['show_option_not_in'] )
402
+ {
403
+ $show_option_not_in = $r['show_option_not_in'];
404
+ $selected = ( 'not_in' === strval($r['selected']) ) ? " selected='selected'" : '';
405
+ $new_output .= "\t<option value='not_in'$selected>$show_option_not_in</option>\n";
406
  }
407
 
408
+ array_splice( $options_array, 2, 0, $new_output );
409
+
410
+ $output = implode('', $options_array);
411
+
412
  return $output;
413
  }
414
  }
css/eml-admin.css CHANGED
@@ -85,6 +85,10 @@ body.eml-media-css .attachments-browser .media-toolbar .spinner {
85
  body.eml-media-css .attachments-browser .uploader-inline {
86
  margin-bottom: 0;
87
  }
 
 
 
 
88
 
89
  @media only screen and (max-width: 1200px) {
90
 
85
  body.eml-media-css .attachments-browser .uploader-inline {
86
  margin-bottom: 0;
87
  }
88
+ body.eml-media-css .attachments-browser .instructions {
89
+ display: block;
90
+ }
91
+
92
 
93
  @media only screen and (max-width: 1200px) {
94
 
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.0.4.7
7
  Author: wpUXsolutions
8
  Author URI: http://wpUXsolutions.com
9
  Text Domain: eml
@@ -23,7 +23,7 @@ global $wp_version,
23
 
24
 
25
 
26
- $wpuxss_eml_version = '2.0.4.7';
27
 
28
 
29
 
@@ -48,6 +48,7 @@ if ( ! function_exists( 'wpuxss_eml_on_plugins_loaded' ) ) {
48
 
49
 
50
 
 
51
  include_once( 'core/mime-types.php' );
52
  include_once( 'core/taxonomies.php' );
53
 
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.0.4.8
7
  Author: wpUXsolutions
8
  Author URI: http://wpUXsolutions.com
9
  Text Domain: eml
23
 
24
 
25
 
26
+ $wpuxss_eml_version = '2.0.4.8';
27
 
28
 
29
 
48
 
49
 
50
 
51
+
52
  include_once( 'core/mime-types.php' );
53
  include_once( 'core/taxonomies.php' );
54
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webbistro
3
  Tags: media library, taxonomy, taxonomies, mime, mime type, attachment, media category, media categories, media tag, media tags, media taxonomy, media taxonomies, media filter, media organizer, file types, media types, media uploader, custom, media management, attachment management, files management, ux, user experience, wp-admin, admin, categories, category, filter, image, images, media, upload
4
  Requires at least: 4.0
5
  Tested up to: 4.3
6
- Stable tag: 2.0.4.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -141,6 +141,17 @@ Right now it is possible via WP_Query ([example of the code](http://wordpress.or
141
 
142
  == Changelog ==
143
 
 
 
 
 
 
 
 
 
 
 
 
144
  = 2.0.4.7 =
145
  *Release Date - August 11, 2015*
146
 
3
  Tags: media library, taxonomy, taxonomies, mime, mime type, attachment, media category, media categories, media tag, media tags, media taxonomy, media taxonomies, media filter, media organizer, file types, media types, media uploader, custom, media management, attachment management, files management, ux, user experience, wp-admin, admin, categories, category, filter, image, images, media, upload
4
  Requires at least: 4.0
5
  Tested up to: 4.3
6
+ Stable tag: 2.0.4.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
141
 
142
  == Changelog ==
143
 
144
+ = 2.0.4.8 =
145
+ *Release Date - September 14, 2015*
146
+
147
+ = Bugfixes =
148
+ * The bug with empty taxonomy drop down fixed
149
+ * WordPress 4.3 gallery's template issue fixed [Support Request](https://wordpress.org/support/topic/unable-to-remove-images-from-gallery)
150
+ * The bug with plugin's folder name fixed (PRO only)
151
+ * Minor WP 4.3 CSS compatibility issues fixed
152
+
153
+
154
+ &nbsp;
155
  = 2.0.4.7 =
156
  *Release Date - August 11, 2015*
157