Enhanced Media Library - Version 2.3.3

Version Description

Release Date - November 13, 2016

Download this release

Release Info

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

Code changes from version 2.3.2 to 2.3.3

Files changed (3) hide show
  1. core/taxonomies.php +27 -21
  2. enhanced-media-library.php +2 -2
  3. readme.txt +9 -1
core/taxonomies.php CHANGED
@@ -561,39 +561,45 @@ if ( ! function_exists( 'wpuxss_eml_attachment_fields_to_edit' ) ) {
561
 
562
  function wpuxss_eml_attachment_fields_to_edit( $form_fields, $post ) {
563
 
 
 
 
 
 
564
  $wpuxss_eml_tax_options = get_option('wpuxss_eml_tax_options');
565
 
566
 
567
- if ( function_exists( 'wp_terms_checklist' ) ) {
568
 
569
- foreach( $form_fields as $field => $args ) {
 
 
570
 
571
- if ( (bool) $wpuxss_eml_tax_options['edit_all_as_hierarchical'] || (bool) $args['hierarchical'] ) {
572
 
573
- ob_start();
574
 
575
- wp_terms_checklist( $post->ID, array( 'taxonomy' => $field, 'checked_ontop' => false, 'walker' => new Walker_Media_Taxonomy_Checklist() ) );
576
 
577
- $content = ob_get_contents();
578
 
579
- if ( $content )
580
- $html = '<ul class="term-list">' . $content . '</ul>';
581
- else
582
- $html = '<ul class="term-list"><li>No ' . $args['label'] . ' found.</li></ul>';
583
 
584
- ob_end_clean();
585
 
586
- unset( $form_fields[$field]['value'] );
587
 
588
- $form_fields[$field]['input'] = 'html';
589
- $form_fields[$field]['html'] = $html;
590
- }
591
- else {
592
- $values = wp_get_object_terms( $post->ID, $field, array( 'fields' => 'names' ) );
593
- $form_fields[$field]['value'] = join(', ', $values);
594
- } // if
595
- } // foreach
596
- } // if
597
 
598
  return $form_fields;
599
  }
561
 
562
  function wpuxss_eml_attachment_fields_to_edit( $form_fields, $post ) {
563
 
564
+ if ( ! function_exists( 'wp_terms_checklist' ) ) {
565
+ return $form_fields;
566
+ }
567
+
568
+
569
  $wpuxss_eml_tax_options = get_option('wpuxss_eml_tax_options');
570
 
571
 
572
+ foreach( $form_fields as $field => $args ) {
573
 
574
+ if ( ! taxonomy_exists( $field ) ) {
575
+ continue;
576
+ }
577
 
578
+ if ( (bool) $wpuxss_eml_tax_options['edit_all_as_hierarchical'] || (bool) $args['hierarchical'] ) {
579
 
580
+ ob_start();
581
 
582
+ wp_terms_checklist( $post->ID, array( 'taxonomy' => $field, 'checked_ontop' => false, 'walker' => new Walker_Media_Taxonomy_Checklist() ) );
583
 
584
+ $content = ob_get_contents();
585
 
586
+ if ( $content )
587
+ $html = '<ul class="term-list">' . $content . '</ul>';
588
+ else
589
+ $html = '<ul class="term-list"><li>No ' . $args['label'] . ' found.</li></ul>';
590
 
591
+ ob_end_clean();
592
 
593
+ unset( $form_fields[$field]['value'] );
594
 
595
+ $form_fields[$field]['input'] = 'html';
596
+ $form_fields[$field]['html'] = $html;
597
+ }
598
+ else {
599
+ $values = wp_get_object_terms( $post->ID, $field, array( 'fields' => 'names' ) );
600
+ $form_fields[$field]['value'] = join(', ', $values);
601
+ } // if
602
+ } // foreach
 
603
 
604
  return $form_fields;
605
  }
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.3.2
7
  Author: wpUXsolutions
8
  Author URI: http://wpUXsolutions.com
9
  Text Domain: enhanced-media-library
@@ -27,7 +27,7 @@ global $wp_version,
27
 
28
 
29
 
30
- $wpuxss_eml_version = '2.3.2';
31
 
32
 
33
 
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.3.3
7
  Author: wpUXsolutions
8
  Author URI: http://wpUXsolutions.com
9
  Text Domain: enhanced-media-library
27
 
28
 
29
 
30
+ $wpuxss_eml_version = '2.3.3';
31
 
32
 
33
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webbistro
3
  Tags: media library, media category, media categories, media gallery, gallery shortcode, media tag, media tags, media taxonomy, media taxonomies, media uploader, mime type, mime, mime types, file types, media types, media filter, attachment, gallery, image, images, media, ux, user experience, wp-admin, admin, taxonomy, taxonomies
4
  Requires at least: 4.5
5
  Tested up to: 4.6.1
6
- Stable tag: 2.3.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -162,6 +162,14 @@ Please notice that you use the Enhanced Media Library with other plugins that ad
162
 
163
  == Changelog ==
164
 
 
 
 
 
 
 
 
 
165
  = 2.3.2 =
166
  *Release Date - November 11, 2016*
167
 
3
  Tags: media library, media category, media categories, media gallery, gallery shortcode, media tag, media tags, media taxonomy, media taxonomies, media uploader, mime type, mime, mime types, file types, media types, media filter, attachment, gallery, image, images, media, ux, user experience, wp-admin, admin, taxonomy, taxonomies
4
  Requires at least: 4.5
5
  Tested up to: 4.6.1
6
+ Stable tag: 2.3.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
162
 
163
  == Changelog ==
164
 
165
+ = 2.3.3 =
166
+ *Release Date - November 13, 2016*
167
+
168
+ = Bugfixes =
169
+ * A bug of v2.3.2 causing issues to some third-party plugins and Customizer fixed
170
+
171
+
172
+ &nbsp;
173
  = 2.3.2 =
174
  *Release Date - November 11, 2016*
175