Media Library Categories - Version 1.7

Version Description

  • Support WordPress 5.0
  • Support multiple slugs and id's in gallery shortcode
  • Support WordPress Coding Standards 1.1.0
  • Add support for Dark Mode in WordPress
Download this release

Release Info

Developer jeffrey-wp
Plugin Icon 128x128 Media Library Categories
Version 1.7
Comparing to
See all releases

Code changes from version 1.6.1 to 1.7

css/wpmediacategory.css CHANGED
@@ -1,39 +1,4 @@
1
- /* media-toolbar */
2
- .attachments-browser .media-toolbar {
3
- height: auto;
4
- }
5
- .attachments-browser .attachments, .attachments-browser .uploader-inline {
6
- top: 72px;
7
- }
8
-
9
  /* category fields */
10
- .compat-item .term-list {
11
- background-color: #fff;
12
- border: 1px solid #dfdfdf;
13
- border-radius: 3px;
14
- margin: 0 0 10px;
15
- padding: 10px 10px 5px;
16
- }
17
- .compat-item .term-list li {
18
- line-height: 22px;
19
- }
20
- .compat-item .term-list li input[type="checkbox"] {
21
- margin: -4px 4px 0 0 !important;
22
- width: auto;
23
- }
24
- .compat-item .term-list li input[type=checkbox]:indeterminate:before {
25
- content: '\f147';
26
- color: #CBCBCB;
27
- display: inline-block;
28
- float: left;
29
- font: normal 21px/1 'dashicons';
30
- margin: -3px 0 0 -4px;
31
- speak: none;
32
- vertical-align: middle;
33
- width: 16px;
34
- -webkit-font-smoothing: antialiased;
35
- -moz-osx-font-smoothing: grayscale;
36
- }
37
- .compat-item .term-list .children {
38
- margin: 5px 0 0 20px;
39
  }
 
 
 
 
 
 
 
 
1
  /* category fields */
2
+ .compat-field-category label span {
3
+ color: inherit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
css/wpmediacategory.min.css CHANGED
@@ -1 +1 @@
1
- .attachments-browser .media-toolbar{height:auto}.attachments-browser .attachments,.attachments-browser .uploader-inline{top:72px}.compat-item .term-list{background-color:#fff;border:1px solid #dfdfdf;border-radius:3px;margin:0 0 10px;padding:10px 10px 5px}.compat-item .term-list li{line-height:22px}.compat-item .term-list li input[type=checkbox]{margin:-4px 4px 0 0!important;width:auto}.compat-item .term-list li input[type=checkbox]:indeterminate:before{content:'\f147';color:#CBCBCB;display:inline-block;float:left;font:400 21px/1 dashicons;margin:-3px 0 0 -4px;speak:none;vertical-align:middle;width:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.compat-item .term-list .children{margin:5px 0 0 20px}
1
+ .compat-field-category label span{color:inherit}
index.php CHANGED
@@ -3,11 +3,11 @@
3
  * Plugin Name: Media Library Categories
4
  * Plugin URI: https://wordpress.org/plugins/wp-media-library-categories/
5
  * Description: Adds the ability to use categories in the media library.
6
- * Version: 1.6.1
7
  * Author: Jeffrey-WP
8
  * Text Domain: wp-media-library-categories
9
  * Domain Path: /languages
10
- * Author URI: https://codecanyon.net/user/jeffrey-wp/?ref=jeffrey-wp
11
  */
12
 
13
  /** If this file is called directly, abort. */
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
22
  */
23
  class wpMediaLibraryCategories {
24
 
25
- public $plugin_version = '1.6.1';
26
 
27
  /**
28
  * Initialize the hooks and filters
@@ -89,8 +89,7 @@ class wpMediaLibraryCategories {
89
  ?>
90
  <div class="notice notice-info is-dismissible">
91
  <p><?php _e( 'Thank you for using the <strong>Media Library Categories</strong> plugin.', 'wp-media-library-categories' ); ?></p>
92
- <p><?php _e( 'By default the WordPress Media Library uses the same categories as WordPress does (such as in posts &amp; pages).<br />
93
- If you want to use separate categories for the WordPress Media Library take a look at our <a href="https://wordpress.org/plugins/wp-media-library-categories/#faq" target="_blank">Frequently asked questions</a>.', 'wp-media-library-categories' ); ?></p>
94
  </div>
95
  <?php
96
  }
@@ -191,106 +190,97 @@ class wpMediaLibraryCategories {
191
  $taxonomy = apply_filters( 'wpmediacategory_taxonomy', $taxonomy );
192
 
193
  $category = $atts['category'];
 
194
 
195
- // category slug?
196
- if ( ! is_numeric( $category ) ) {
197
 
198
- if ( $taxonomy != 'category' ) {
 
199
 
200
- $term = get_term_by( 'slug', $category, $taxonomy );
201
- if ( false !== $term ) {
202
- $category = $term->term_id;
203
- } else {
204
- // not existing category slug
205
- $category = '';
206
- }
207
 
208
- } else {
 
 
 
 
 
 
209
 
210
- $categoryObject = get_category_by_slug( $category );
211
- if ( false !== $categoryObject ) {
212
- $category = $categoryObject->term_id;
213
  } else {
214
- // not existing category slug
215
- $category = '';
 
 
 
 
 
 
216
  }
217
- }
218
 
219
- }
220
 
221
- if ( $category != '' ) {
222
 
223
- $ids_new = array();
224
 
225
- if ( $taxonomy != 'category' ) {
226
 
227
- $args = array(
228
- 'post_type' => 'attachment',
229
- 'numberposts' => -1,
230
- 'post_status' => null,
231
- 'tax_query' => array(
232
- array(
233
- 'taxonomy' => $taxonomy,
234
- 'field' => 'id',
235
- 'terms' => $category
 
236
  )
237
- )
238
- );
239
-
240
- } else {
241
 
242
- $args = array(
243
- 'post_type' => 'attachment',
244
- 'numberposts' => -1,
245
- 'post_status' => null,
246
- 'category' => $category
247
- );
248
 
249
- }
 
 
 
 
 
250
 
251
- // use id attribute and show attachments in selected category and uploaded to post ID
252
- if ( isset( $atts['id'] ) ) {
253
- if ( empty( $atts['id'] ) ) {
254
- $args['post_parent'] = get_the_ID(); // get ID of the current post if id attribute is empty
255
- } else {
256
- $args['post_parent'] = $atts['id'];
257
  }
258
- }
259
 
260
- $attachments = get_posts( $args );
 
 
 
 
 
 
 
261
 
262
- if ( ! empty( $attachments ) ) {
263
 
264
- // ids attribute already present?
265
- if ( isset( $atts['ids'] ) ) {
266
- $ids_old = explode( ',', $atts['ids'] );
267
- foreach ( $attachments as $attachment ) {
268
- // preserve id if in the selected category
269
- if ( in_array( $attachment->ID, $ids_old ) ) {
270
- $ids_new[] = $attachment->ID;
271
- }
272
- }
273
- } else {
274
  foreach ( $attachments as $attachment ) {
275
  $ids_new[] = $attachment->ID;
276
  }
277
  }
278
 
279
- $atts['ids'] = $ids_new;
280
- } else {
281
- $atts['ids'] = array(-1); // don't display images if category is empty
282
- }
283
 
 
284
  }
285
- if ( isset( $atts['ids'] ) ) {
286
- $result['include'] = implode( ',', $atts['ids'] );
287
- }
288
- $result['category'] = $atts['category'];
289
 
 
 
290
  }
291
 
292
  return $result;
293
-
294
  }
295
 
296
 
@@ -530,7 +520,7 @@ class wpMediaLibraryCategories {
530
  return array_merge(
531
  array(
532
  'settings' => '<a href="' . get_bloginfo( 'wpurl' ) . '/wp-admin/edit-tags.php?taxonomy=' . $taxonomy . '&amp;post_type=attachment">' . __( 'Categories', 'wp-media-library-categories' ) . '</a>',
533
- 'premium' => '<a href="https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp" style="color:#60a559;" target="_blank" title="' . __( 'Try Media Library Categories Premium today for just $20 - 100% money back guarantee', 'wp-media-library-categories' ) . '">' . __( 'Try Premium Version', 'wp-media-library-categories' ) . '</a>'
534
  ),
535
  $links
536
  );
@@ -619,8 +609,8 @@ class wpMediaLibraryCategories {
619
  echo '</script>';
620
 
621
  wp_enqueue_script( 'wpmediacategory-media-views', plugins_url( 'js/wpmediacategory-media-views' . $suffix . '.js', __FILE__ ), array( 'media-views' ), $plugin_version, true );
622
- wp_enqueue_style( 'wpmediacategory', plugins_url( 'css/wpmediacategory' . $suffix . '.css', __FILE__ ), array(), $plugin_version );
623
  }
 
624
  }
625
 
626
 
3
  * Plugin Name: Media Library Categories
4
  * Plugin URI: https://wordpress.org/plugins/wp-media-library-categories/
5
  * Description: Adds the ability to use categories in the media library.
6
+ * Version: 1.7
7
  * Author: Jeffrey-WP
8
  * Text Domain: wp-media-library-categories
9
  * Domain Path: /languages
10
+ * Author URI: https://1.envato.market/c/1206953/275988/4415?subId1=profile&subId2=plugin&subId3=wpmlc&u=https%3A%2F%2Fcodecanyon.net%2Fuser%2Fjeffrey-wp%2F
11
  */
12
 
13
  /** If this file is called directly, abort. */
22
  */
23
  class wpMediaLibraryCategories {
24
 
25
+ public $plugin_version = '1.7';
26
 
27
  /**
28
  * Initialize the hooks and filters
89
  ?>
90
  <div class="notice notice-info is-dismissible">
91
  <p><?php _e( 'Thank you for using the <strong>Media Library Categories</strong> plugin.', 'wp-media-library-categories' ); ?></p>
92
+ <p><?php _e( 'By default the WordPress Media Library uses the same categories as WordPress does (such as in posts &amp; pages).<br />If you want to use separate categories for the WordPress Media Library take a look at our <a href="https://wordpress.org/plugins/wp-media-library-categories/#faq" target="_blank">Frequently asked questions</a>.', 'wp-media-library-categories' ); ?></p>
 
93
  </div>
94
  <?php
95
  }
190
  $taxonomy = apply_filters( 'wpmediacategory_taxonomy', $taxonomy );
191
 
192
  $category = $atts['category'];
193
+ $include = isset( $result['include'] ) ? $result['include'] : '';
194
 
195
+ $categories = explode( ',', $category );
196
+ foreach ( $categories as $category ) {
197
 
198
+ // category slug?
199
+ if ( ! is_numeric( $category ) ) {
200
 
201
+ if ( $taxonomy != 'category' ) {
 
 
 
 
 
 
202
 
203
+ $term = get_term_by( 'slug', $category, $taxonomy );
204
+ if ( false !== $term ) {
205
+ $category = $term->term_id;
206
+ } else {
207
+ // not existing category slug
208
+ $category = '';
209
+ }
210
 
 
 
 
211
  } else {
212
+
213
+ $categoryObject = get_category_by_slug( $category );
214
+ if ( false !== $categoryObject ) {
215
+ $category = $categoryObject->term_id;
216
+ } else {
217
+ // not existing category slug
218
+ $category = '';
219
+ }
220
  }
 
221
 
222
+ }
223
 
224
+ if ( $category != '' ) {
225
 
226
+ $ids_new = array();
227
 
228
+ if ( $taxonomy != 'category' ) {
229
 
230
+ $args = array(
231
+ 'post_type' => 'attachment',
232
+ 'numberposts' => -1,
233
+ 'post_status' => null,
234
+ 'tax_query' => array(
235
+ array(
236
+ 'taxonomy' => $taxonomy,
237
+ 'field' => 'id',
238
+ 'terms' => $category
239
+ )
240
  )
241
+ );
 
 
 
242
 
243
+ } else {
 
 
 
 
 
244
 
245
+ $args = array(
246
+ 'post_type' => 'attachment',
247
+ 'numberposts' => -1,
248
+ 'post_status' => null,
249
+ 'category' => $category
250
+ );
251
 
 
 
 
 
 
 
252
  }
 
253
 
254
+ // use id attribute and show attachments in selected category and uploaded to post ID
255
+ if ( isset( $atts['id'] ) ) {
256
+ if ( empty( $atts['id'] ) ) {
257
+ $args['post_parent'] = get_the_ID(); // get ID of the current post if id attribute is empty
258
+ } else {
259
+ $args['post_parent'] = $atts['id'];
260
+ }
261
+ }
262
 
263
+ $attachments = get_posts( $args );
264
 
265
+ if ( ! empty( $attachments ) ) {
 
 
 
 
 
 
 
 
 
266
  foreach ( $attachments as $attachment ) {
267
  $ids_new[] = $attachment->ID;
268
  }
269
  }
270
 
271
+ if ( ! empty( $ids_new ) ) {
272
+ $include .= ',' . implode( ',', $ids_new );
273
+ $atts['ids'] = '';
274
+ }
275
 
276
+ }
277
  }
 
 
 
 
278
 
279
+ $result['include'] = trim( $include, ',' );
280
+ $result['category'] = $atts['category'];
281
  }
282
 
283
  return $result;
 
284
  }
285
 
286
 
520
  return array_merge(
521
  array(
522
  'settings' => '<a href="' . get_bloginfo( 'wpurl' ) . '/wp-admin/edit-tags.php?taxonomy=' . $taxonomy . '&amp;post_type=attachment">' . __( 'Categories', 'wp-media-library-categories' ) . '</a>',
523
+ 'premium' => '<a href="https://1.envato.market/c/1206953/275988/4415?subId1=wpmlcp&subId2=plugin&u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Fmedia-library-categories-premium%2F6691290" style="color:#60a559;" target="_blank" title="' . __( 'Try Media Library Categories Premium today - 100% money back guarantee', 'wp-media-library-categories' ) . '">' . __( 'Try Premium Version', 'wp-media-library-categories' ) . '</a>'
524
  ),
525
  $links
526
  );
609
  echo '</script>';
610
 
611
  wp_enqueue_script( 'wpmediacategory-media-views', plugins_url( 'js/wpmediacategory-media-views' . $suffix . '.js', __FILE__ ), array( 'media-views' ), $plugin_version, true );
 
612
  }
613
+ wp_enqueue_style( 'wpmediacategory', plugins_url( 'css/wpmediacategory' . $suffix . '.css', __FILE__ ), array(), $plugin_version );
614
  }
615
 
616
 
languages/wp-media-library-categories.pot CHANGED
@@ -1,50 +1,65 @@
1
  # Copyright (C) 2016 Media Library Categories
2
  # This file is distributed under the same license as the Media Library Categories package.
 
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Media Library Categories 1.5.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-media-library-"
7
  "categories\n"
8
- "POT-Creation-Date: 2016-07-18 18:51:21+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
 
 
 
 
15
 
16
- #: index.php:250 index.php:261 index.php:529
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  msgid "View all categories"
18
  msgstr ""
19
 
20
- #: index.php:287 index.php:288 index.php:435
21
  msgid "Categories"
22
  msgstr ""
23
 
24
- #: index.php:292
25
  msgid "Add"
26
  msgstr ""
27
 
28
- #: index.php:298
29
  msgid "Remove"
30
  msgstr ""
31
 
32
- #: index.php:303 index.php:304
33
  msgid "Remove all categories"
34
  msgstr ""
35
 
36
- #: index.php:421
37
  msgid "Category changes are saved."
38
  msgstr ""
39
 
40
- #: index.php:436
41
- msgid "Get Premium Version"
42
- msgstr ""
43
-
44
- #. Plugin Name of the plugin/theme
45
- msgid "Media Library Categories"
46
  msgstr ""
47
 
48
- #. Description of the plugin/theme
49
- msgid "Adds the ability to use categories in the media library."
50
  msgstr ""
1
  # Copyright (C) 2016 Media Library Categories
2
  # This file is distributed under the same license as the Media Library Categories package.
3
+ #, fuzzy
4
  msgid ""
5
  msgstr ""
6
+ "Project-Id-Version: Media Library Categories 1.7\n"
7
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-media-library-"
8
  "categories\n"
9
+ "POT-Creation-Date: 2018-11-29 22:05+0100\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
+ "X-Generator: Poedit 2.1.1\n"
17
+ "X-Poedit-KeywordsList: __;_e\n"
18
+ "X-Poedit-Basepath: ..\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
 
21
+ #: index.php:91
22
+ msgid ""
23
+ "Thank you for using the <strong>Media Library Categories</strong> plugin."
24
+ msgstr ""
25
+
26
+ #: index.php:92
27
+ msgid ""
28
+ "By default the WordPress Media Library uses the same categories as "
29
+ "WordPress does (such as in posts &amp; pages).<br />If you want to use "
30
+ "separate categories for the WordPress Media Library take a look at our <a "
31
+ "href=\"https://wordpress.org/plugins/wp-media-library-categories/#faq\" "
32
+ "target=\"_blank\">Frequently asked questions</a>."
33
+ msgstr ""
34
+
35
+ #: index.php:329 index.php:340 index.php:607
36
  msgid "View all categories"
37
  msgstr ""
38
 
39
+ #: index.php:368 index.php:369 index.php:522
40
  msgid "Categories"
41
  msgstr ""
42
 
43
+ #: index.php:373
44
  msgid "Add"
45
  msgstr ""
46
 
47
+ #: index.php:379
48
  msgid "Remove"
49
  msgstr ""
50
 
51
+ #: index.php:384 index.php:385
52
  msgid "Remove all categories"
53
  msgstr ""
54
 
55
+ #: index.php:506
56
  msgid "Category changes are saved."
57
  msgstr ""
58
 
59
+ #: index.php:523
60
+ msgid "Try Media Library Categories Premium today - 100% money back guarantee"
 
 
 
 
61
  msgstr ""
62
 
63
+ #: index.php:523
64
+ msgid "Try Premium Version"
65
  msgstr ""
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: jeffrey-wp
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SSNQMST6R28Q2
4
  Tags: category, categories, media, library, medialibrary, image, images, media category, media categories
5
  Requires at least: 3.1
6
- Tested up to: 4.9.5
7
- Stable tag: 1.6.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -23,11 +23,11 @@ There is even an option to filter on categories when using the gallery shortcode
23
  * filter on categories in the media library
24
  * filter on categories in the gallery shortcode
25
  * taxonomy filter
26
- * support for WordPress 3.1 – 4.9
27
 
28
  > <strong>Try Premium version - 100% money back guarantee</strong>
29
  > WordPress Media Library Categories Premium adds the option to filter on categories when inserting media into a post or page.
30
- > [Try now - 100% money back guarantee](https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
31
 
32
  == Installation ==
33
 
@@ -80,7 +80,7 @@ In this example the slug is used, but you could also use the term_id.
80
 
81
 
82
  = How can I filter on categories when inserting media into a post or page? =
83
- This feature is only available in the [premium version](https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
84
 
85
 
86
  = I want to thank you, where can I make a donation? =
@@ -91,122 +91,23 @@ Maintaining a plugin and keeping it up to date is hard work. Please support me b
91
 
92
  1. Filter by category in the media library. Use bulk actions to add and remove categories of multiple images at once.
93
  2. Manage categories in the media library
94
- 3. Filter by category when inserting media [(premium version)](https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
95
 
96
  == Changelog ==
97
 
 
 
 
 
 
 
98
  = 1.6.1 =
99
- * Support for SCRIPT_DEBUG.
100
- * Only load CSS when needed.
101
 
102
  = 1.6 =
103
- * Notice for first time users how to separate media categories.
104
- * Rewrite entire plugin to improve quality and make it ready for future development.
105
- * Move language files to GlotPress.
106
-
107
- = 1.5.6 =
108
- * Remember pagenumber when using bulk actions
109
- * Only use wp_safe_redirect instead of wp_redirect
110
- * Changed donation information. [Donations are still possible and very welcome ;-)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SSNQMST6R28Q2)
111
-
112
- = 1.5.5 =
113
- * Better detection if category is empty in gallery shortcode.
114
- * Use id attribute in gallery shortcode and show attachments in selected category and uploaded to post ID. `[gallery category="my-category-slug" id="123"]`
115
- * Leave id attribute empty in gallery shortcode to show attachments in selected category and upload to current post. `[gallery category="my-category-slug" id=""]`
116
-
117
- = 1.5.4 =
118
- * Before creating custom taxonomy check if taxonomy exists. Thanks @drpratten
119
- * Use filter instead of action for the displayed attachments. Thanks @clearsite
120
- * Japanese translations. Thanks @katsushi-kawamori
121
- * On some servers the active category was not selected in the dropdown in media list view.
122
- * Support PHP 7.1
123
-
124
- = 1.5.3 =
125
- * Added some default languages en_US, nl_NL, de_DE
126
- * Updated all links to use https://
127
-
128
- = 1.5.2 =
129
- * Support for GlotPress (to translate WordPress plugins). You can help to translate on [https://translate.wordpress.org/projects/wp-plugins/wp-media-library-categories/](https://translate.wordpress.org/projects/wp-plugins/wp-media-library-categories/)
130
- * Fixed notice "Undefined index: ids" which in some rare cases would appear.
131
-
132
- = 1.5.1 =
133
- * Support for WordPress 4.2
134
- * Security enhancement for add_query_arg
135
- * Remember selected category
136
-
137
- = 1.5 =
138
- * Support for WordPress 4.1
139
- * Add category checkboxes to attachment details on insert media popup
140
-
141
- = 1.4.15 =
142
- * Support for WordPress 4.0
143
- * Added categories filter to media grid view.
144
- * Security enhancement.
145
- * Resolved conflict with UberMenu plugin.
146
-
147
- = 1.4.13 =
148
- * Improved compatibility with other plugins that use the [gallery] shortcode.
149
- * Remember author when changing categories.
150
- * Added example code in the FAQ for creating seperate categories with PHP 4. [Read the FAQ for howto](https://wordpress.org/plugins/wp-media-library-categories/faq/)
151
-
152
- = 1.4.12 =
153
- * Added category option to the default WordPress shortcode gallery. [Read the FAQ for howto](https://wordpress.org/plugins/wp-media-library-categories/faq/)
154
- * Improved code styling to match WordPress code standard even more strictly.
155
-
156
- = 1.4.11 =
157
- * Remember ordering when changing categories.
158
-
159
- = 1.4.10 =
160
- * Stay on active page in the media library when changing categories.
161
- * Fixed PHP 5.4 strict warning.
162
- * Added hierarchical display of the filter menu when inserting media. [(premium only)](https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
163
-
164
- = 1.4.9 =
165
- * Fixed error message which in some cases appears when updating multiple items at once. [View support question](https://wordpress.org/support/topic/error-after-latest-update-3)
166
-
167
- = 1.4.8 =
168
- * Fixed media count on the categories page.
169
- * Added item count in the category filter dropdown when using separate categories for the WordPress Media Library.
170
- * Support for WordPress 3.9
171
-
172
- = 1.4.7 =
173
- * New images are now added to the default category (if a default category exists). I most cases the default category is called "no category". [View support question](https://wordpress.org/support/topic/new-images-arent-automatically-in-uncategorized)
174
-
175
- = 1.4.6 =
176
- * Fixed bug where in some rare cases the filter by category didn't work
177
-
178
- = 1.4.5 =
179
- * Fixed bug in version 1.4.4 that made default categories in WordPress invisible
180
-
181
- = 1.4.4 =
182
- * By default the WordPress Media Library uses the same categories as WordPress does (such as posts & pages). Now you can use separate categories for the WordPress Media Library. [Read the FAQ for howto](https://wordpress.org/plugins/wp-media-library-categories/faq/)
183
-
184
- = 1.4.2 & 1.4.3 =
185
- * [(Premium only)](https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
186
-
187
- = 1.4.1 =
188
- * Improved bulk actions: added option to remove category from multiple media items at once
189
- * Improved bulk actions: arranged options in option group
190
-
191
- = 1.4 =
192
- * Filter on categories when inserting media [(premium only)](https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
193
-
194
- = 1.3.2 =
195
- * [Added taxonomy filter](https://wordpress.org/support/topic/added-taxonomy-filter)
196
- * [Don't load unnecessary code](https://dannyvankooten.com/3882/wordpress-plugin-structure-dont-load-unnecessary-code/)
197
-
198
- = 1.3.1 =
199
- * Fixed bug (when having a category with apostrophe)
200
-
201
- = 1.3 =
202
- * Add support for bulk actions (to change category from multiple media items at once)
203
- * Support for WordPress 3.8
204
-
205
- = 1.2 =
206
- * Better internationalisation
207
-
208
- = 1.1 =
209
- * Add a link to media categories on the plugin page
210
 
211
- = 1.0 =
212
- * Initial release.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SSNQMST6R28Q2
4
  Tags: category, categories, media, library, medialibrary, image, images, media category, media categories
5
  Requires at least: 3.1
6
+ Tested up to: 5.0.2
7
+ Stable tag: 1.7
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
23
  * filter on categories in the media library
24
  * filter on categories in the gallery shortcode
25
  * taxonomy filter
26
+ * support for WordPress 3.1 – 5.0
27
 
28
  > <strong>Try Premium version - 100% money back guarantee</strong>
29
  > WordPress Media Library Categories Premium adds the option to filter on categories when inserting media into a post or page.
30
+ > [Try now - 100% money back guarantee](https://1.envato.market/c/1206953/275988/4415?subId1=wpmlcp&subId2=readme&u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Fmedia-library-categories-premium%2F6691290)
31
 
32
  == Installation ==
33
 
80
 
81
 
82
  = How can I filter on categories when inserting media into a post or page? =
83
+ This feature is only available in the [premium version](https://1.envato.market/c/1206953/275988/4415?subId1=wpmlcp&subId2=readme&u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Fmedia-library-categories-premium%2F6691290)
84
 
85
 
86
  = I want to thank you, where can I make a donation? =
91
 
92
  1. Filter by category in the media library. Use bulk actions to add and remove categories of multiple images at once.
93
  2. Manage categories in the media library
94
+ 3. Filter by category when inserting media [(premium version)](https://1.envato.market/c/1206953/275988/4415?subId1=wpmlcp&subId2=readme&u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Fmedia-library-categories-premium%2F6691290)
95
 
96
  == Changelog ==
97
 
98
+ = 1.7 =
99
+ * Support WordPress 5.0
100
+ * Support multiple slugs and id's in gallery shortcode
101
+ * Support WordPress Coding Standards 1.1.0
102
+ * Add support for [Dark Mode](https://wordpress.org/plugins/dark-mode/) in WordPress
103
+
104
  = 1.6.1 =
105
+ * Support for SCRIPT_DEBUG
106
+ * Only load CSS when needed
107
 
108
  = 1.6 =
109
+ * Notice for first time users how to separate media categories
110
+ * Rewrite entire plugin to improve quality and make it ready for future development
111
+ * Move language files to GlotPress
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
+ [See complete changelog for all versions](https://jeffrey-wp.com/wordpress-plugin/media-library-categories/changelog/?utm_source=plugin&utm_medium=changelog&utm_campaign=wpmlc).