Enhanced Media Library - Version 1.0.5

Version Description

  • Fixed: Added WP 3.9 compatibility Support Request
  • Fixed: Bug with disappearing filter in Media Uploader Support Request
Download this release

Release Info

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

Code changes from version 1.0.4 to 1.0.5

css/eml-admin.css CHANGED
@@ -11,7 +11,12 @@
11
  border-radius: 3px;
12
  padding: 10px 10px 5px;
13
  margin: 0 0 10px;
14
- font-size: 11px;
 
 
 
 
 
15
  }
16
  .term-list .children {
17
  margin: 5px 0 0 20px;
@@ -21,9 +26,9 @@
21
  /* == Taxonomy Filters == */
22
 
23
  .media-frame select[class^="attachment"] {
24
- margin-top: 11px;
25
- margin-right: 10px;
26
- max-width: 140px;
27
  }
28
 
29
  .media-frame .search {
11
  border-radius: 3px;
12
  padding: 10px 10px 5px;
13
  margin: 0 0 10px;
14
+ }
15
+ .term-list li {
16
+ line-height: 22px;
17
+ }
18
+ .term-list li input[type="checkbox"] {
19
+ margin: -4px 4px 0 0 !important;
20
  }
21
  .term-list .children {
22
  margin: 5px 0 0 20px;
26
  /* == Taxonomy Filters == */
27
 
28
  .media-frame select[class^="attachment"] {
29
+ margin-top: 11px !important;
30
+ margin-right: 10px !important;
31
+ max-width: 140px !important;
32
  }
33
 
34
  .media-frame .search {
enhanced-media-library.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Enhanced Media Library
4
  Plugin URI: http://wordpressuxsolutions.com
5
  Description: This plugin will be handy for those who need to manage a lot of media files.
6
- Version: 1.0.4
7
  Author: WordPress UX Solutions
8
  Author URI: http://wordpressuxsolutions.com
9
  License: GPLv2 or later
@@ -31,7 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31
 
32
 
33
 
34
- $wpuxss_eml_version = '1.0.4';
35
  $wpuxss_eml_old_version = get_option('wpuxss_eml_version', false);
36
  $wpuxss_eml_dir = plugin_dir_url( __FILE__ );
37
 
@@ -185,8 +185,8 @@ function wpuxss_eml_on_admin_init()
185
  // plugin scripts
186
  wp_enqueue_script(
187
  'wpuxss-eml-media-uploader-script',
188
- $wpuxss_eml_dir . '/js/eml-media-uploader.js',
189
- array('backbone'),
190
  $wpuxss_eml_version,
191
  true
192
  );
@@ -194,7 +194,7 @@ function wpuxss_eml_on_admin_init()
194
  // admin styles
195
  wp_enqueue_style(
196
  'wpuxss-eml-admin-custom-style',
197
- $wpuxss_eml_dir . '/css/eml-admin.css',
198
  array(),
199
  $wpuxss_eml_version,
200
  'all'
3
  Plugin Name: Enhanced Media Library
4
  Plugin URI: http://wordpressuxsolutions.com
5
  Description: This plugin will be handy for those who need to manage a lot of media files.
6
+ Version: 1.0.5
7
  Author: WordPress UX Solutions
8
  Author URI: http://wordpressuxsolutions.com
9
  License: GPLv2 or later
31
 
32
 
33
 
34
+ $wpuxss_eml_version = '1.0.5';
35
  $wpuxss_eml_old_version = get_option('wpuxss_eml_version', false);
36
  $wpuxss_eml_dir = plugin_dir_url( __FILE__ );
37
 
185
  // plugin scripts
186
  wp_enqueue_script(
187
  'wpuxss-eml-media-uploader-script',
188
+ $wpuxss_eml_dir . 'js/eml-media-uploader.js',
189
+ array('jquery','backbone','media-views'),
190
  $wpuxss_eml_version,
191
  true
192
  );
194
  // admin styles
195
  wp_enqueue_style(
196
  'wpuxss-eml-admin-custom-style',
197
+ $wpuxss_eml_dir . 'css/eml-admin.css',
198
  array(),
199
  $wpuxss_eml_version,
200
  'all'
js/eml-media-uploader.js CHANGED
@@ -25,7 +25,7 @@
25
  });
26
 
27
  filters.all = {
28
- text: that.options.termListTitle,
29
  priority: 1
30
  };
31
  filters['all']['props'] = {};
@@ -35,32 +35,18 @@
35
  }
36
  });
37
 
 
38
  // Enhanced AttachmentBrowser
 
 
 
39
  media.view.AttachmentsBrowser = media.view.AttachmentsBrowser.extend({
40
  createToolbar: function() {
41
- var filters, FiltersConstructor;
42
-
43
- this.toolbar = new media.view.Toolbar({
44
- controller: this.controller
45
- });
46
-
47
- this.views.add( this.toolbar );
48
-
49
- filters = this.options.filters;
50
- if ( 'uploaded' === filters )
51
- FiltersConstructor = media.view.AttachmentFilters.Uploaded;
52
- else if ( 'all' === filters )
53
- FiltersConstructor = media.view.AttachmentFilters.All;
54
-
55
- if ( FiltersConstructor ) {
56
- this.toolbar.set( 'filters', new FiltersConstructor({
57
- controller: this.controller,
58
- model: this.collection.props,
59
- priority: -80
60
- }).render() );
61
- }
62
 
63
- var that = this;
 
 
 
64
  i = 1;
65
  $.each(wpuxss_eml_taxonomies, function(taxonomy, values)
66
  {
@@ -79,22 +65,6 @@
79
 
80
  }
81
  });
82
-
83
-
84
- if ( this.options.search ) {
85
- this.toolbar.set( 'search', new media.view.Search({
86
- controller: this.controller,
87
- model: this.collection.props,
88
- priority: 60
89
- }).render() );
90
- }
91
-
92
- if ( this.options.dragInfo ) {
93
- this.toolbar.set( 'dragInfo', new media.View({
94
- el: $( '<div class="instructions">' + l10n.dragInfo + '</div>' )[0],
95
- priority: -40
96
- }) );
97
- }
98
  }
99
  });
100
 
25
  });
26
 
27
  filters.all = {
28
+ text: that.options.termListTitle,
29
  priority: 1
30
  };
31
  filters['all']['props'] = {};
35
  }
36
  });
37
 
38
+
39
  // Enhanced AttachmentBrowser
40
+
41
+ var curAttachmentsBrowser = media.view.AttachmentsBrowser;
42
+
43
  media.view.AttachmentsBrowser = media.view.AttachmentsBrowser.extend({
44
  createToolbar: function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
+ curAttachmentsBrowser.prototype.createToolbar.apply(this,arguments);
47
+
48
+ var that = this,
49
+ filters = this.options.filters;
50
  i = 1;
51
  $.each(wpuxss_eml_taxonomies, function(taxonomy, values)
52
  {
65
 
66
  }
67
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  }
69
  });
70
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: webbistro
3
  Tags: media library, taxonomy, taxonomies, mime, mime type, attachment, media category, media categories, media tag, media tags, media taxonomy, media taxonomies, media filter, media organizer, file types, media types, media uploader, custom, media management, attachment management, files management, ux, user experience, wp-admin, admin
4
  Requires at least: 3.5
5
- Tested up to: 3.8
6
- Stable tag: 1.0.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -79,16 +79,20 @@ New features and improvements coming...
79
 
80
  == Changelog ==
81
 
 
 
 
 
82
  = 1.0.4 =
83
 
84
  * Fixed: Filter mechanism in Media Library [Support Request](http://wordpress.org/support/topic/filter-in-media-not-working-properly)
85
- * Fixed: The bug with saving of assigned post categories and tags in Media Uploader
86
 
87
  = 1.0.3 =
88
 
89
  * Update: Better term sorting in Media Uploader
90
  * Update: Minor code improvements
91
- * Fixed: The bug with sorting of post categories and tags assigned to Media Library
92
 
93
  = 1.0.2 =
94
 
2
  Contributors: webbistro
3
  Tags: media library, taxonomy, taxonomies, mime, mime type, attachment, media category, media categories, media tag, media tags, media taxonomy, media taxonomies, media filter, media organizer, file types, media types, media uploader, custom, media management, attachment management, files management, ux, user experience, wp-admin, admin
4
  Requires at least: 3.5
5
+ Tested up to: 3.9
6
+ Stable tag: 1.0.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
79
 
80
  == Changelog ==
81
 
82
+ = 1.0.5 =
83
+ * Fixed: Added WP 3.9 compatibility [Support Request](https://wordpress.org/support/topic/great-plugin-but-breaks-the-new-add-media-in-39)
84
+ * Fixed: Bug with disappearing filter in Media Uploader [Support Request](https://wordpress.org/support/topic/any-chance-of-adding-a-drop-down-in-the-insert-media-screen)
85
+
86
  = 1.0.4 =
87
 
88
  * Fixed: Filter mechanism in Media Library [Support Request](http://wordpress.org/support/topic/filter-in-media-not-working-properly)
89
+ * Fixed: Bug with saving of assigned post categories and tags in Media Uploader
90
 
91
  = 1.0.3 =
92
 
93
  * Update: Better term sorting in Media Uploader
94
  * Update: Minor code improvements
95
+ * Fixed: Bug with sorting of post categories and tags assigned to Media Library
96
 
97
  = 1.0.2 =
98