Enhanced Media Library - Version 2.6.2

Version Description

Download this release

Release Info

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

Code changes from version 2.6.1 to 2.6.2

Files changed (3) hide show
  1. core/taxonomies.php +21 -12
  2. enhanced-media-library.php +3 -3
  3. readme.txt +8 -1
core/taxonomies.php CHANGED
@@ -1406,28 +1406,37 @@ if ( ! function_exists('wpuxss_eml_pre_get_posts') ) {
1406
 
1407
 
1408
 
1409
- add_action( 'parse_tax_query', 'kia_no_child_terms' );
 
 
 
 
 
1410
 
1411
- function kia_no_child_terms( $query ) {
1412
 
1413
- if ( ! $query->is_main_query() ) {
1414
- return;
1415
- }
 
 
 
1416
 
1417
 
1418
- if ( ! is_admin() ) {
1419
 
1420
- $wpuxss_eml_tax_options = get_option('wpuxss_eml_tax_options');
1421
 
1422
- if ( (bool) $wpuxss_eml_tax_options['tax_archives'] ) {
1423
 
1424
- $wpuxss_eml_lib_options = get_option('wpuxss_eml_lib_options');
1425
 
1426
- foreach ( get_option('wpuxss_eml_taxonomies', array() ) as $taxonomy => $params ) {
1427
 
1428
- if ( (bool) $params['assigned'] && (bool) $params['eml_media'] && is_tax( $taxonomy ) ) {
1429
 
1430
- $query->tax_query->queries[0]['include_children'] = (bool) $wpuxss_eml_lib_options['include_children'];
 
1431
  }
1432
  }
1433
  }
1406
 
1407
 
1408
 
1409
+ /**
1410
+ * wpuxss_eml_exclude_children
1411
+ *
1412
+ * @since 2.6
1413
+ * @created 05/05/18
1414
+ */
1415
 
1416
+ add_action( 'parse_tax_query', 'wpuxss_eml_exclude_children' );
1417
 
1418
+ if ( ! function_exists( 'wpuxss_eml_exclude_children' ) ) {
1419
+ function wpuxss_eml_exclude_children( $query ) {
1420
+
1421
+ if ( ! $query->is_main_query() ) {
1422
+ return;
1423
+ }
1424
 
1425
 
1426
+ if ( ! is_admin() ) {
1427
 
1428
+ $wpuxss_eml_tax_options = get_option('wpuxss_eml_tax_options');
1429
 
1430
+ if ( (bool) $wpuxss_eml_tax_options['tax_archives'] ) {
1431
 
1432
+ $wpuxss_eml_lib_options = get_option('wpuxss_eml_lib_options');
1433
 
1434
+ foreach ( get_option('wpuxss_eml_taxonomies', array() ) as $taxonomy => $params ) {
1435
 
1436
+ if ( (bool) $params['assigned'] && (bool) $params['eml_media'] && is_tax( $taxonomy ) ) {
1437
 
1438
+ $query->tax_query->queries[0]['include_children'] = (bool) $wpuxss_eml_lib_options['include_children'];
1439
+ }
1440
  }
1441
  }
1442
  }
enhanced-media-library.php CHANGED
@@ -3,14 +3,14 @@
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.6.1
7
  Author: wpUXsolutions
8
  Author URI: http://wpUXsolutions.com
9
  Text Domain: enhanced-media-library
10
  Domain Path: /languages
11
  License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
12
 
13
- Copyright 2013-2016 wpUXsolutions (email : wpUXsolutions@gmail.com)
14
  */
15
 
16
 
@@ -26,7 +26,7 @@ global $wp_version,
26
 
27
 
28
 
29
- if ( ! defined('EML_VERSION') ) define( 'EML_VERSION', '2.6.1' );
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.6.2
7
  Author: wpUXsolutions
8
  Author URI: http://wpUXsolutions.com
9
  Text Domain: enhanced-media-library
10
  Domain Path: /languages
11
  License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
12
 
13
+ Copyright 2013-2018 wpUXsolutions (email : wpUXsolutions@gmail.com)
14
  */
15
 
16
 
26
 
27
 
28
 
29
+ if ( ! defined('EML_VERSION') ) define( 'EML_VERSION', '2.6.2' );
30
 
31
 
32
 
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.9.6
6
- Stable tag: 2.6.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -170,6 +170,13 @@ Additional comfort and even more convenient way to organize WordPress media libr
170
 
171
  ## Changelog ##
172
 
 
 
 
 
 
 
 
173
  ### 2.6.1 ###
174
  *Release Date - May 20, 2018*
175
 
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.9.6
6
+ Stable tag: 2.6.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
170
 
171
  ## Changelog ##
172
 
173
+ ### 2.6.2 ###
174
+ *Release Date - May 20, 2018*
175
+
176
+ = Bugfixes =
177
+ * A few bugs of v2.6 and v2.6.1 preventing admin area from working fixed
178
+
179
+
180
  ### 2.6.1 ###
181
  *Release Date - May 20, 2018*
182