Version Description
Download this release
Release Info
Developer | webbistro |
Plugin | Enhanced Media Library |
Version | 2.8.7 |
Comparing to | |
See all releases |
Code changes from version 2.8.6 to 2.8.7
- core/compatibility.php +18 -1
- enhanced-media-library.php +2 -2
- js/eml-media-grid.js +15 -0
- js/eml-media-views.js +2 -5
- readme.txt +11 -1
core/compatibility.php
CHANGED
@@ -46,7 +46,24 @@ if ( wpuxss_eml_enhance_media_shortcodes() ) {
|
|
46 |
* @created 9/10/20
|
47 |
*/
|
48 |
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
|
52 |
/**
|
46 |
* @created 9/10/20
|
47 |
*/
|
48 |
|
49 |
+
$wp_theme = wp_get_theme();
|
50 |
+
|
51 |
+
if ( ! empty( $wp_theme ) ) {
|
52 |
+
|
53 |
+
$wp_parent_theme = $wp_theme->parent();
|
54 |
+
|
55 |
+
if ( ! empty( $wp_parent_theme ) ) {
|
56 |
+
$wp_theme = $wp_parent_theme;
|
57 |
+
}
|
58 |
+
|
59 |
+
if ( 'Enfold' === $wp_theme->get( 'Name' ) && version_compare( $wp_theme->get( 'Version' ), '4.8.4', '>=') ) {
|
60 |
+
|
61 |
+
add_filter( 'shortcode_atts_av_masonry_gallery', 'wpuxss_eml_shortcode_atts', 10, 3 );
|
62 |
+
}
|
63 |
+
else {
|
64 |
+
add_filter( 'shortcode_atts_av_masonry_entries', 'wpuxss_eml_shortcode_atts', 10, 3 );
|
65 |
+
}
|
66 |
+
}
|
67 |
|
68 |
|
69 |
/**
|
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.
|
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.
|
30 |
if ( ! defined('EML_PRO') ) define( 'EML_PRO', false );
|
31 |
|
32 |
|
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.7
|
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.7' );
|
30 |
if ( ! defined('EML_PRO') ) define( 'EML_PRO', false );
|
31 |
|
32 |
|
js/eml-media-grid.js
CHANGED
@@ -51,6 +51,20 @@ window.eml = window.eml || { l10n: {} };
|
|
51 |
});
|
52 |
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
newEvents = { 'click .eml-toggle-collapse': 'toggleCollapse' };
|
56 |
_.extend( newEvents, media.view.Attachment.Details.prototype.events);
|
@@ -516,6 +530,7 @@ window.eml = window.eml || { l10n: {} };
|
|
516 |
},
|
517 |
|
518 |
startHistory: function() {
|
|
|
519 |
// Verify pushState support and activate.
|
520 |
if ( window.history && window.history.pushState ) {
|
521 |
if ( Backbone.History.started ) {
|
51 |
});
|
52 |
|
53 |
|
54 |
+
|
55 |
+
_.extend( media.view.Attachment.Details.prototype, {
|
56 |
+
|
57 |
+
editAttachment: function( event ) {
|
58 |
+
|
59 |
+
if ( this.controller.isModeActive( 'eml-grid' ) ) {
|
60 |
+
|
61 |
+
event.preventDefault();
|
62 |
+
this.controller.trigger( 'edit:attachment', this.model);
|
63 |
+
}
|
64 |
+
}
|
65 |
+
});
|
66 |
+
|
67 |
+
|
68 |
|
69 |
newEvents = { 'click .eml-toggle-collapse': 'toggleCollapse' };
|
70 |
_.extend( newEvents, media.view.Attachment.Details.prototype.events);
|
530 |
},
|
531 |
|
532 |
startHistory: function() {
|
533 |
+
|
534 |
// Verify pushState support and activate.
|
535 |
if ( window.history && window.history.pushState ) {
|
536 |
if ( Backbone.History.started ) {
|
js/eml-media-views.js
CHANGED
@@ -380,10 +380,6 @@ window.eml = window.eml || { l10n: {} };
|
|
380 |
|
381 |
createFilters: function() {
|
382 |
|
383 |
-
var uncategorizedProps,
|
384 |
-
taxonomies = _.intersection( _.keys( eml.l10n.taxonomies ), eml.l10n.filter_taxonomies );
|
385 |
-
|
386 |
-
|
387 |
original.AttachmentFilters.Uploaded.createFilters.apply( this, arguments );
|
388 |
|
389 |
_.each( this.filters, function( filter, key ) {
|
@@ -810,12 +806,13 @@ window.eml = window.eml || { l10n: {} };
|
|
810 |
if ( -1 !== _.indexOf( eml.l10n.filter_taxonomies, taxonomy ) && values.term_list.length ) {
|
811 |
|
812 |
self.toolbar.set( taxonomy+'FilterLabel', new media.view.Label({
|
813 |
-
value: eml.l10n.filter_by + values.plural_name,
|
814 |
attributes: {
|
815 |
'for': 'media-attachment-' + taxonomy + '-filters',
|
816 |
},
|
817 |
priority: -70 + i++
|
818 |
}).render() );
|
|
|
819 |
self.toolbar.set( taxonomy+'-filter', new media.view.AttachmentFilters.Taxonomy({
|
820 |
controller: self.controller,
|
821 |
model: self.collection.props,
|
380 |
|
381 |
createFilters: function() {
|
382 |
|
|
|
|
|
|
|
|
|
383 |
original.AttachmentFilters.Uploaded.createFilters.apply( this, arguments );
|
384 |
|
385 |
_.each( this.filters, function( filter, key ) {
|
806 |
if ( -1 !== _.indexOf( eml.l10n.filter_taxonomies, taxonomy ) && values.term_list.length ) {
|
807 |
|
808 |
self.toolbar.set( taxonomy+'FilterLabel', new media.view.Label({
|
809 |
+
value: eml.l10n.filter_by + ' ' + values.plural_name,
|
810 |
attributes: {
|
811 |
'for': 'media-attachment-' + taxonomy + '-filters',
|
812 |
},
|
813 |
priority: -70 + i++
|
814 |
}).render() );
|
815 |
+
|
816 |
self.toolbar.set( taxonomy+'-filter', new media.view.AttachmentFilters.Taxonomy({
|
817 |
controller: self.controller,
|
818 |
model: self.collection.props,
|
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.8
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 2.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -185,6 +185,16 @@ Please notice that you use Enhanced Media Library with other plugins that add me
|
|
185 |
|
186 |
## Changelog ##
|
187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
### 2.8.6 ###
|
189 |
*Release Date - August 5, 2021*
|
190 |
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 2.8.7
|
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.7 ###
|
189 |
+
*Release Date - August 8, 2021*
|
190 |
+
|
191 |
+
= Compatibility =
|
192 |
+
* Enfold theme masonry gallery (latest version) compatibility ensured
|
193 |
+
|
194 |
+
= Bugfixes =
|
195 |
+
* Edit image wrong link fixed for the Grid mode
|
196 |
+
|
197 |
+
|
198 |
### 2.8.6 ###
|
199 |
*Release Date - August 5, 2021*
|
200 |
|