Enhanced Media Library - Version 2.8.5

Version Description

Download this release

Release Info

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

Code changes from version 2.8.4 to 2.8.5

core/compatibility.php CHANGED
@@ -32,30 +32,34 @@ if ( ! function_exists( 'wpuxss_eml_elementor_scripts' ) ) {
32
 
33
 
34
 
35
- /**
36
- * Enfold Theme
37
- * for [av_masonry_gallery] shortcode
38
- *
39
- * Use Default Layout and choose the shortcode Media Elements > Masonry Gallery
40
- * to make theme gallery shows images from the specific category.
41
- *
42
- * @since 2.8
43
- * @created 9/10/20
44
- */
45
  if ( wpuxss_eml_enhance_media_shortcodes() ) {
 
 
 
 
 
 
 
 
 
 
 
 
46
  add_filter( 'shortcode_atts_av_masonry_entries', 'wpuxss_eml_shortcode_atts', 10, 3 );
47
- }
48
 
49
 
 
 
 
 
 
 
 
 
 
50
 
51
- /**
52
- * FooGallery
53
- *
54
- * @since 2.8.4
55
- * @created 08/04/21
56
- */
57
 
58
- add_filter( 'foogallery_shortcode_atts', 'wpuxss_eml_foogallery_shortcode_atts' );
59
 
60
  if ( ! function_exists( 'wpuxss_eml_foogallery_shortcode_atts' ) ) {
61
 
32
 
33
 
34
 
35
+
 
 
 
 
 
 
 
 
 
36
  if ( wpuxss_eml_enhance_media_shortcodes() ) {
37
+
38
+ /**
39
+ * Enfold Theme
40
+ * for [av_masonry_gallery] shortcode
41
+ *
42
+ * Use Default Layout and choose the shortcode Media Elements > Masonry Gallery
43
+ * to make theme gallery shows images from the specific category.
44
+ *
45
+ * @since 2.8
46
+ * @created 9/10/20
47
+ */
48
+
49
  add_filter( 'shortcode_atts_av_masonry_entries', 'wpuxss_eml_shortcode_atts', 10, 3 );
 
50
 
51
 
52
+ /**
53
+ * FooGallery
54
+ *
55
+ * @since 2.8.4
56
+ * @created 08/04/21
57
+ */
58
+
59
+ add_filter( 'foogallery_shortcode_atts', 'wpuxss_eml_foogallery_shortcode_atts' );
60
+ }
61
 
 
 
 
 
 
 
62
 
 
63
 
64
  if ( ! function_exists( 'wpuxss_eml_foogallery_shortcode_atts' ) ) {
65
 
core/options-pages.php CHANGED
@@ -1987,7 +1987,7 @@ if ( ! function_exists( 'wpuxss_eml_print_taxonomies_options' ) ) {
1987
  }
1988
 
1989
 
1990
- $wpuxss_eml_taxonomies = get_option( 'wpuxss_eml_taxonomies' );
1991
  $title = __('Media Settings'); ?>
1992
 
1993
 
@@ -2070,8 +2070,8 @@ if ( ! function_exists( 'wpuxss_eml_print_taxonomies_options' ) ) {
2070
  $html .= '<li><label>' . __('Show in Nav Menu','enhanced-media-library') . '</label><input type="checkbox" class="wpuxss-eml-show_in_nav_menus" name="wpuxss_eml_taxonomies[' . esc_attr($taxonomy->name) . '][show_in_nav_menus]" value="1" ' . checked( true, (bool) $taxonomy->show_in_nav_menus, false ) . ' /></li>';
2071
  $html .= '<li><label>' . __('Remember Terms Order (sort)','enhanced-media-library') . '</label><input type="checkbox" class="wpuxss-eml-sort" name="wpuxss_eml_taxonomies[' . esc_attr($taxonomy->name) . '][sort]" value="1" ' . checked( true, (bool) $taxonomy->sort, false ) . ' /></li>';
2072
  $html .= '<li><label>' . __('Show in REST','enhanced-media-library') . '</label><input type="checkbox" class="wpuxss-eml-show_in_rest" name="wpuxss_eml_taxonomies[' . esc_attr($taxonomy->name) . '][show_in_rest]" value="1" ' . checked( true, (bool) $taxonomy->show_in_rest, false ) . ' /></li>';
2073
- $html .= '<li><label>' . __('Rewrite Slug','enhanced-media-library') . '</label><input type="text" class="wpuxss-eml-slug" name="wpuxss_eml_taxonomies[' . esc_attr($taxonomy->name) . '][rewrite][slug]" value="' . esc_attr($taxonomy->rewrite['slug']) . '" /></li>';
2074
- $html .= '<li><label>' . __('Slug with Front','enhanced-media-library') . '</label><input type="checkbox" class="wpuxss-eml-with_front" name="wpuxss_eml_taxonomies[' . esc_attr($taxonomy->name) . '][rewrite][with_front]" value="1" ' . checked( true, (bool) $taxonomy->rewrite['with_front'], false ) . ' /></li>';
2075
  $html .= '</ul>';
2076
  $html .= '</div>';
2077
 
1987
  }
1988
 
1989
 
1990
+ $wpuxss_eml_taxonomies = get_option( 'wpuxss_eml_taxonomies', array() );
1991
  $title = __('Media Settings'); ?>
1992
 
1993
 
2070
  $html .= '<li><label>' . __('Show in Nav Menu','enhanced-media-library') . '</label><input type="checkbox" class="wpuxss-eml-show_in_nav_menus" name="wpuxss_eml_taxonomies[' . esc_attr($taxonomy->name) . '][show_in_nav_menus]" value="1" ' . checked( true, (bool) $taxonomy->show_in_nav_menus, false ) . ' /></li>';
2071
  $html .= '<li><label>' . __('Remember Terms Order (sort)','enhanced-media-library') . '</label><input type="checkbox" class="wpuxss-eml-sort" name="wpuxss_eml_taxonomies[' . esc_attr($taxonomy->name) . '][sort]" value="1" ' . checked( true, (bool) $taxonomy->sort, false ) . ' /></li>';
2072
  $html .= '<li><label>' . __('Show in REST','enhanced-media-library') . '</label><input type="checkbox" class="wpuxss-eml-show_in_rest" name="wpuxss_eml_taxonomies[' . esc_attr($taxonomy->name) . '][show_in_rest]" value="1" ' . checked( true, (bool) $taxonomy->show_in_rest, false ) . ' /></li>';
2073
+ $html .= '<li><label>' . __('Rewrite Slug','enhanced-media-library') . '</label><input type="text" class="wpuxss-eml-slug" name="wpuxss_eml_taxonomies[' . esc_attr($taxonomy->name) . '][rewrite][slug]" value="' . esc_attr($wpuxss_eml_taxonomies[$taxonomy->name]['rewrite']['slug']) . '" /></li>';
2074
+ $html .= '<li><label>' . __('Slug with Front','enhanced-media-library') . '</label><input type="checkbox" class="wpuxss-eml-with_front" name="wpuxss_eml_taxonomies[' . esc_attr($taxonomy->name) . '][rewrite][with_front]" value="1" ' . checked( true, (bool) $wpuxss_eml_taxonomies[$taxonomy->name]['rewrite']['with_front'], false ) . ' /></li>';
2075
  $html .= '</ul>';
2076
  $html .= '</div>';
2077
 
core/taxonomies.php CHANGED
@@ -1441,8 +1441,8 @@ if ( ! function_exists('wpuxss_eml_pre_get_posts') ) {
1441
  // front-end only
1442
  if ( ! is_admin() ) {
1443
 
1444
- $wpuxss_eml_tax_options = get_option('wpuxss_eml_tax_options');
1445
- $wpuxss_eml_taxonomies = get_option('wpuxss_eml_taxonomies');
1446
 
1447
  foreach ( (array) $wpuxss_eml_taxonomies as $taxonomy => $params ) {
1448
 
1441
  // front-end only
1442
  if ( ! is_admin() ) {
1443
 
1444
+ $wpuxss_eml_tax_options = get_option( 'wpuxss_eml_tax_options', array() );
1445
+ $wpuxss_eml_taxonomies = get_option( 'wpuxss_eml_taxonomies', array() );
1446
 
1447
  foreach ( (array) $wpuxss_eml_taxonomies as $taxonomy => $params ) {
1448
 
enhanced-media-library.php CHANGED
@@ -3,7 +3,7 @@
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.4
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.8.4' );
30
  if ( ! defined('EML_PRO') ) define( 'EML_PRO', false );
31
 
32
 
@@ -177,7 +177,7 @@ if ( ! function_exists( 'wpuxss_eml_on_init' ) ) {
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
 
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.5
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.8.5' );
30
  if ( ! defined('EML_PRO') ) define( 'EML_PRO', false );
31
 
32
 
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'], $taxonomy ),
181
  'with_front' => (bool) $params['rewrite']['with_front']
182
  );
183
 
languages/enhanced-media-library.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Enhanced Media Library\n"
6
- "POT-Creation-Date: 2021-04-09 21:27+0300\n"
7
  "PO-Revision-Date: 2016-04-14 21:02+0300\n"
8
  "Last-Translator: wpUXsolutions <wpUXsolutions@gmail.com>\n"
9
  "Language-Team: wpUXsolutions <wpUXsolutions@gmail.com>\n"
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Enhanced Media Library\n"
6
+ "POT-Creation-Date: 2021-04-10 21:51+0300\n"
7
  "PO-Revision-Date: 2016-04-14 21:02+0300\n"
8
  "Last-Translator: wpUXsolutions <wpUXsolutions@gmail.com>\n"
9
  "Language-Team: wpUXsolutions <wpUXsolutions@gmail.com>\n"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: media library, media category, media categories, media gallery, gallery sh
4
  Requires at least: 5.0
5
  Tested up to: 5.7.1
6
  Requires PHP: 5.6
7
- Stable tag: 2.8.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -185,6 +185,14 @@ Please notice that you use Enhanced Media Library with other plugins that add me
185
 
186
  ## Changelog ##
187
 
 
 
 
 
 
 
 
 
188
  ### 2.8.4 ###
189
  *Release Date - April 9, 2021*
190
 
4
  Requires at least: 5.0
5
  Tested up to: 5.7.1
6
  Requires PHP: 5.6
7
+ Stable tag: 2.8.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
185
 
186
  ## Changelog ##
187
 
188
+ ### 2.8.5 ###
189
+ *Release Date - April 10, 2021*
190
+
191
+ = Bugfixes =
192
+ * A critical bug of v2.8.4 fixed (FooGallery related)
193
+ * A few minor bugs fixed
194
+
195
+
196
  ### 2.8.4 ###
197
  *Release Date - April 9, 2021*
198