Enhanced Media Library - Version 2.8.3

Version Description

Download this release

Release Info

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

Code changes from version 2.8.2 to 2.8.3

css/eml-admin-media-rtl.css CHANGED
@@ -378,6 +378,10 @@ body.upload-php.eml-grid #wpbody-content > #screen-meta {
378
 
379
  /* == Attachment(s) Details == */
380
 
 
 
 
 
381
  .media-sidebar .eml-toggle-collapse {
382
  text-decoration: none;
383
  height: 14px;
378
 
379
  /* == Attachment(s) Details == */
380
 
381
+ body.eml-media-css .attachment-details {
382
+ overflow-y: hidden;
383
+ }
384
+
385
  .media-sidebar .eml-toggle-collapse {
386
  text-decoration: none;
387
  height: 14px;
css/eml-admin-media.css CHANGED
@@ -378,6 +378,10 @@ body.upload-php.eml-grid #wpbody-content > #screen-meta {
378
 
379
  /* == Attachment(s) Details == */
380
 
 
 
 
 
381
  .media-sidebar .eml-toggle-collapse {
382
  text-decoration: none;
383
  height: 14px;
378
 
379
  /* == Attachment(s) Details == */
380
 
381
+ body.eml-media-css .attachment-details {
382
+ overflow-y: hidden;
383
+ }
384
+
385
  .media-sidebar .eml-toggle-collapse {
386
  text-decoration: none;
387
  height: 14px;
enhanced-media-library.php CHANGED
@@ -3,14 +3,14 @@
3
  Plugin Name: Enhanced Media Library
4
  Plugin URI: https://wpUXsolutions.com/plugins/enhanced-media-library
5
  Description: This plugin will be handy for those who need to manage a lot of media files.
6
- Version: 2.8.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-2020 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.8.2' );
30
  if ( ! defined('EML_PRO') ) define( 'EML_PRO', false );
31
 
32
 
@@ -168,6 +168,7 @@ if ( ! function_exists( 'wpuxss_eml_on_init' ) ) {
168
  function wpuxss_eml_on_init() {
169
 
170
  $wpuxss_eml_taxonomies = get_option( 'wpuxss_eml_taxonomies', array() );
 
171
 
172
  // register eml taxonomies
173
  foreach ( (array) $wpuxss_eml_taxonomies as $taxonomy => $params ) {
@@ -175,6 +176,10 @@ if ( ! function_exists( 'wpuxss_eml_on_init' ) ) {
175
  if ( $params['eml_media'] && ! empty( $params['labels']['singular_name'] ) && ! empty( $params['labels']['name'] ) ) {
176
 
177
  $labels = array_map( 'sanitize_text_field', $params['labels'] );
 
 
 
 
178
 
179
  register_taxonomy(
180
  $taxonomy,
@@ -189,10 +194,7 @@ if ( ! function_exists( 'wpuxss_eml_on_init' ) ) {
189
  'sort' => (bool) $params['sort'],
190
  'show_in_rest' => (bool) $params['show_in_rest'],
191
  'query_var' => sanitize_key( $taxonomy ),
192
- 'rewrite' => array(
193
- 'slug' => wpuxss_eml_sanitize_slug( $params['rewrite']['slug'] ),
194
- 'with_front' => (bool) $params['rewrite']['with_front']
195
- )
196
  )
197
  );
198
  }
3
  Plugin Name: Enhanced Media Library
4
  Plugin URI: https://wpUXsolutions.com/plugins/enhanced-media-library
5
  Description: This plugin will be handy for those who need to manage a lot of media files.
6
+ Version: 2.8.3
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-2021 wpUXsolutions (email : wpUXsolutions@gmail.com)
14
  */
15
 
16
 
26
 
27
 
28
 
29
+ if ( ! defined('EML_VERSION') ) define( 'EML_VERSION', '2.8.3' );
30
  if ( ! defined('EML_PRO') ) define( 'EML_PRO', false );
31
 
32
 
168
  function wpuxss_eml_on_init() {
169
 
170
  $wpuxss_eml_taxonomies = get_option( 'wpuxss_eml_taxonomies', array() );
171
+ $wpuxss_eml_tax_options = get_option( 'wpuxss_eml_tax_options', array() );
172
 
173
  // register eml taxonomies
174
  foreach ( (array) $wpuxss_eml_taxonomies as $taxonomy => $params ) {
176
  if ( $params['eml_media'] && ! empty( $params['labels']['singular_name'] ) && ! empty( $params['labels']['name'] ) ) {
177
 
178
  $labels = array_map( 'sanitize_text_field', $params['labels'] );
179
+ $rewrite = ! (bool) $wpuxss_eml_tax_options['tax_archives'] ? false : array(
180
+ 'slug' => wpuxss_eml_sanitize_slug( $params['rewrite']['slug'] ),
181
+ 'with_front' => (bool) $params['rewrite']['with_front']
182
+ );
183
 
184
  register_taxonomy(
185
  $taxonomy,
194
  'sort' => (bool) $params['sort'],
195
  'show_in_rest' => (bool) $params['show_in_rest'],
196
  'query_var' => sanitize_key( $taxonomy ),
197
+ 'rewrite' => $rewrite
 
 
 
198
  )
199
  );
200
  }
js/eml-admin.js CHANGED
@@ -101,23 +101,4 @@
101
  $('.fullscreen-spinner-box').remove();
102
  }
103
 
104
-
105
- $( document ).ready( function() {
106
-
107
- $( '.rating-stars' ).find( 'a' ).hover(
108
- function() {
109
- $( this ).nextAll( 'a' ).children( 'span' ).removeClass( 'dashicons-star-filled' ).addClass( 'dashicons-star-empty' );
110
- $( this ).prevAll( 'a' ).children( 'span' ).removeClass( 'dashicons-star-empty' ).addClass( 'dashicons-star-filled' );
111
- $( this ).children( 'span' ).removeClass( 'dashicons-star-empty' ).addClass( 'dashicons-star-filled' );
112
- }, function() {
113
- var rating = $( 'input#rating' ).val();
114
- if ( rating ) {
115
- var list = $( '.rating-stars a' );
116
- list.children( 'span' ).removeClass( 'dashicons-star-filled' ).addClass( 'dashicons-star-empty' );
117
- list.slice( 0, rating ).children( 'span' ).removeClass( 'dashicons-star-empty' ).addClass( 'dashicons-star-filled' );
118
- }
119
- }
120
- );
121
- });
122
-
123
  })( jQuery );
101
  $('.fullscreen-spinner-box').remove();
102
  }
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  })( jQuery );
js/eml-media-list.js CHANGED
@@ -10,7 +10,7 @@
10
  $mainFilter = $('select[name="attachment-filter"]'),
11
  $taxFilters = $('select.eml-taxonomy-filters'),
12
  $resetFilters,
13
- $_GET = $.parseJSON( l10n.$_GET );
14
 
15
 
16
  // Add "All Uncategorized" option
10
  $mainFilter = $('select[name="attachment-filter"]'),
11
  $taxFilters = $('select.eml-taxonomy-filters'),
12
  $resetFilters,
13
+ $_GET = JSON.parse( l10n.$_GET );
14
 
15
 
16
  // Add "All Uncategorized" option
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  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: 5.0
5
- Tested up to: 5.6
6
  Requires PHP: 5.6
7
- Stable tag: 2.8.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -184,6 +184,16 @@ Please notice that you use Enhanced Media Library with other plugins that add me
184
 
185
  ## Changelog ##
186
 
 
 
 
 
 
 
 
 
 
 
187
  ### 2.8.2 ###
188
  *Release Date - December 9, 2020*
189
 
2
  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: 5.0
5
+ Tested up to: 5.7
6
  Requires PHP: 5.6
7
+ Stable tag: 2.8.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
184
 
185
  ## Changelog ##
186
 
187
+ ### 2.8.3 ###
188
+ *Release Date - March 9, 2021*
189
+
190
+ = Improvements =
191
+ * Taxonomy archive pages mechanism improved. When the pages are disabled (404) they are no more accessible by friendly URLs.
192
+
193
+ = Compatibility =
194
+ * WordPress 5.7 compatibility ensured
195
+
196
+
197
  ### 2.8.2 ###
198
  *Release Date - December 9, 2020*
199