Media Library Categories - Version 1.5.3

Version Description

  • Added some default languages en_US, nl_NL, de_DE
  • Updated all links to use https://
Download this release

Release Info

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

Code changes from version 1.5.2 to 1.5.3

index.php CHANGED
@@ -1,12 +1,13 @@
1
  <?php
2
  /**
3
  * Plugin Name: Media Library Categories
4
- * Plugin URI: http://wordpress.org/plugins/wp-media-library-categories/
5
  * Description: Adds the ability to use categories in the media library.
6
- * Version: 1.5.2
7
  * Author: Jeffrey-WP
8
  * Text Domain: wp-media-library-categories
9
- * Author URI: http://codecanyon.net/user/jeffrey-wp/?ref=jeffrey-wp
 
10
  */
11
 
12
  /** Custom update_count_callback */
@@ -32,6 +33,13 @@ function wpmediacategory_update_count_callback( $terms = array(), $taxonomy = 'c
32
  }
33
 
34
 
 
 
 
 
 
 
 
35
  /** register taxonomy for attachments */
36
  function wpmediacategory_init() {
37
  // Default taxonomy
@@ -433,7 +441,7 @@ if ( is_admin() ) {
433
  return array_merge(
434
  array(
435
  'settings' => '<a href="' . get_bloginfo( 'wpurl' ) . '/wp-admin/edit-tags.php?taxonomy=' . $taxonomy . '&amp;post_type=attachment">' . __( 'Categories', 'wp-media-library-categories' ) . '</a>',
436
- 'premium' => '<a href="http://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp">' . __( 'Get Premium Version', 'wp-media-library-categories' ) . '</a>'
437
  ),
438
  $links
439
  );
1
  <?php
2
  /**
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.5.3
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
  /** Custom update_count_callback */
33
  }
34
 
35
 
36
+ /** loading text domain */
37
+ function wpmediacategory_load_plugin_textdomain() {
38
+ load_plugin_textdomain( 'wp-media-library-categories', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
39
+ }
40
+ add_action( 'plugins_loaded', 'wpmediacategory_load_plugin_textdomain' );
41
+
42
+
43
  /** register taxonomy for attachments */
44
  function wpmediacategory_init() {
45
  // Default taxonomy
441
  return array_merge(
442
  array(
443
  'settings' => '<a href="' . get_bloginfo( 'wpurl' ) . '/wp-admin/edit-tags.php?taxonomy=' . $taxonomy . '&amp;post_type=attachment">' . __( 'Categories', 'wp-media-library-categories' ) . '</a>',
444
+ 'premium' => '<a href="https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp">' . __( 'Get Premium Version', 'wp-media-library-categories' ) . '</a>'
445
  ),
446
  $links
447
  );
languages/wp-media-library-categories-de_DE.mo ADDED
Binary file
languages/wp-media-library-categories-de_DE.po ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-media-library-categories\n"
7
+ "POT-Creation-Date: 2016-07-18 18:51:21+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2016-07-18 21:16+0100\n"
12
+ "Last-Translator: \n"
13
+ "Language-Team: \n"
14
+ "X-Generator: Poedit 1.7.6\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "Language: de_DE\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+
19
+ #: index.php:250 index.php:261 index.php:529
20
+ msgid "View all categories"
21
+ msgstr "Alle Kategorien anzeigen"
22
+
23
+ #: index.php:287 index.php:288 index.php:435
24
+ msgid "Categories"
25
+ msgstr "Kategorien"
26
+
27
+ #: index.php:292
28
+ msgid "Add"
29
+ msgstr "Hinzufügen"
30
+
31
+ #: index.php:298
32
+ msgid "Remove"
33
+ msgstr "Löschen"
34
+
35
+ #: index.php:303 index.php:304
36
+ msgid "Remove all categories"
37
+ msgstr "Alle Kategorien löschen"
38
+
39
+ #: index.php:421
40
+ msgid "Category changes are saved."
41
+ msgstr "Kategorie Änderungen werden gespeichert."
42
+
43
+ #: index.php:436
44
+ msgid "Get Premium Version"
45
+ msgstr "Get Premium Version"
46
+
47
+ #. Plugin Name of the plugin/theme
48
+ msgid "Media Library Categories"
49
+ msgstr "Media Library Categories"
50
+
51
+ #. Description of the plugin/theme
52
+ msgid "Adds the ability to use categories in the media library."
53
+ msgstr "Fügt die Fähigkeit, die Kategorien in der Medienbibliothek zu verwenden."
languages/wp-media-library-categories-en_US.mo ADDED
Binary file
languages/wp-media-library-categories-en_US.po ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-media-library-categories\n"
7
+ "POT-Creation-Date: 2016-07-18 18:51:21+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2016-07-18 21:06+0100\n"
12
+ "Last-Translator: \n"
13
+ "Language-Team: \n"
14
+ "X-Generator: Poedit 1.7.6\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "Language: en_US\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+
19
+ #: index.php:250 index.php:261 index.php:529
20
+ msgid "View all categories"
21
+ msgstr "View all categories"
22
+
23
+ #: index.php:287 index.php:288 index.php:435
24
+ msgid "Categories"
25
+ msgstr "Categories"
26
+
27
+ #: index.php:292
28
+ msgid "Add"
29
+ msgstr "Add"
30
+
31
+ #: index.php:298
32
+ msgid "Remove"
33
+ msgstr "Remove"
34
+
35
+ #: index.php:303 index.php:304
36
+ msgid "Remove all categories"
37
+ msgstr "Remove all categories"
38
+
39
+ #: index.php:421
40
+ msgid "Category changes are saved."
41
+ msgstr "Category changes are saved."
42
+
43
+ #: index.php:436
44
+ msgid "Get Premium Version"
45
+ msgstr "Get Premium Version"
46
+
47
+ #. Plugin Name of the plugin/theme
48
+ msgid "Media Library Categories"
49
+ msgstr "Media Library Categories"
50
+
51
+ #. Description of the plugin/theme
52
+ msgid "Adds the ability to use categories in the media library."
53
+ msgstr "Adds the ability to use categories in the media library."
languages/wp-media-library-categories-nl_NL.mo ADDED
Binary file
languages/wp-media-library-categories-nl_NL.po ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-media-library-categories\n"
7
+ "POT-Creation-Date: 2016-07-18 18:51:21+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2016-07-18 22:34+0100\n"
12
+ "Last-Translator: \n"
13
+ "Language-Team: \n"
14
+ "X-Generator: Poedit 1.7.6\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "Language: nl_NL\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+
19
+ #: index.php:250 index.php:261 index.php:529
20
+ msgid "View all categories"
21
+ msgstr "Bekijk alle categorieën"
22
+
23
+ #: index.php:287 index.php:288 index.php:435
24
+ msgid "Categories"
25
+ msgstr "Categorieën"
26
+
27
+ #: index.php:292
28
+ msgid "Add"
29
+ msgstr "Toevoegen"
30
+
31
+ #: index.php:298
32
+ msgid "Remove"
33
+ msgstr "Verwijder"
34
+
35
+ #: index.php:303 index.php:304
36
+ msgid "Remove all categories"
37
+ msgstr "Verwijder alle categorieën"
38
+
39
+ #: index.php:421
40
+ msgid "Category changes are saved."
41
+ msgstr "Categoriewijzigingen zijn opgeslagen."
42
+
43
+ #: index.php:436
44
+ msgid "Get Premium Version"
45
+ msgstr "Opwaarderen naar Premium"
46
+
47
+ #. Plugin Name of the plugin/theme
48
+ msgid "Media Library Categories"
49
+ msgstr "Media Library Categories"
50
+
51
+ #. Description of the plugin/theme
52
+ msgid "Adds the ability to use categories in the media library."
53
+ msgstr "Voegt de mogelijkheid toe om categorieën in de mediabibliotheek te gebruiken."
languages/wp-media-library-categories.pot ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ""
readme.txt CHANGED
@@ -3,10 +3,10 @@ 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.5.1
7
- Stable tag: 1.5.2
8
  License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Adds the ability to use categories in the media library.
12
 
@@ -59,11 +59,11 @@ The value passed to the '`category`' parameter can be either the `category slug`
59
  `[gallery category="my-category-slug"]
60
  Or with term_id:
61
  [gallery category="14"]`
62
- If you use an incorrect slug by default WordPress shows the images that are attached to the page / post that is displayed. If you use an incorrect term_id no images are shown. Aside from this behavior, the `[gallery]` shortcode works as it does by default with the built-in shortcode from WordPress ([see the WordPress gallery shortcode codex page](http://codex.wordpress.org/Gallery_Shortcode)). Some plugins that also use the gallery shortcode (like Jetpack) disable the category option on the gallery shortcode.
63
 
64
 
65
  = How can I filter on categories when inserting media into a post or page? =
66
- This feature is only available in the [premium version](http://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
67
 
68
 
69
  = I want to thank you, where can I make a donation? =
@@ -74,10 +74,14 @@ Maintaining a plugin and keeping it up to date is hard work. Please support me b
74
 
75
  1. Filter by category in the media library. Use bulk actions to add and remove categories of multiple images at once.
76
  2. Manage categories in the media library
77
- 3. Filter by category when inserting media [(premium version)](http://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
78
 
79
  == Changelog ==
80
 
 
 
 
 
81
  = 1.5.2 =
82
  * 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/)
83
  * Fixed notice "Undefined index: ids" which in some rare cases would appear.
@@ -100,10 +104,10 @@ Maintaining a plugin and keeping it up to date is hard work. Please support me b
100
  = 1.4.13 =
101
  * Improved compatibility with other plugins that use the [gallery] shortcode.
102
  * Remember author when changing categories.
103
- * Added example code in the FAQ for creating seperate categories with PHP 4. [Read the FAQ for howto](http://wordpress.org/plugins/wp-media-library-categories/faq/)
104
 
105
  = 1.4.12 =
106
- * Added category option to the default WordPress shortcode gallery. [Read the FAQ for howto](http://wordpress.org/plugins/wp-media-library-categories/faq/)
107
  * Improved code styling to match WordPress code standard even more strictly.
108
 
109
  = 1.4.11 =
@@ -112,10 +116,10 @@ Maintaining a plugin and keeping it up to date is hard work. Please support me b
112
  = 1.4.10 =
113
  * Stay on active page in the media library when changing categories.
114
  * Fixed PHP 5.4 strict warning.
115
- * Added hierarchical display of the filter menu when inserting media. [(premium only)](http://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
116
 
117
  = 1.4.9 =
118
- * Fixed error message which in some cases appears when updating multiple items at once. [View support question](http://wordpress.org/support/topic/error-after-latest-update-3)
119
 
120
  = 1.4.8 =
121
  * Fixed media count on the categories page.
@@ -123,7 +127,7 @@ Maintaining a plugin and keeping it up to date is hard work. Please support me b
123
  * Support for WordPress 3.9
124
 
125
  = 1.4.7 =
126
- * 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](http://wordpress.org/support/topic/new-images-arent-automatically-in-uncategorized)
127
 
128
  = 1.4.6 =
129
  * Fixed bug where in some rare cases the filter by category didn't work
@@ -132,21 +136,21 @@ Maintaining a plugin and keeping it up to date is hard work. Please support me b
132
  * Fixed bug in version 1.4.4 that made default categories in WordPress invisible
133
 
134
  = 1.4.4 =
135
- * 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](http://wordpress.org/plugins/wp-media-library-categories/faq/)
136
 
137
  = 1.4.2 & 1.4.3 =
138
- * [(Premium only)](http://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
139
 
140
  = 1.4.1 =
141
  * Improved bulk actions: added option to remove category from multiple media items at once
142
  * Improved bulk actions: arranged options in option group
143
 
144
  = 1.4 =
145
- * Filter on categories when inserting media [(premium only)](http://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
146
 
147
  = 1.3.2 =
148
- * [Added taxonomy filter](http://wordpress.org/support/topic/added-taxonomy-filter)
149
- * [Don't load unnecessary code](http://dannyvankooten.com/3882/wordpress-plugin-structure-dont-load-unnecessary-code/)
150
 
151
  = 1.3.1 =
152
  * Fixed bug (when having a category with apostrophe)
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.7.1
7
+ Stable tag: 1.5.3
8
  License: GPLv2 or later
9
+ License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Adds the ability to use categories in the media library.
12
 
59
  `[gallery category="my-category-slug"]
60
  Or with term_id:
61
  [gallery category="14"]`
62
+ If you use an incorrect slug by default WordPress shows the images that are attached to the page / post that is displayed. If you use an incorrect term_id no images are shown. Aside from this behavior, the `[gallery]` shortcode works as it does by default with the built-in shortcode from WordPress ([see the WordPress gallery shortcode codex page](https://codex.wordpress.org/Gallery_Shortcode)). Some plugins that also use the gallery shortcode (like Jetpack) disable the category option on the gallery shortcode.
63
 
64
 
65
  = How can I filter on categories when inserting media into a post or page? =
66
+ This feature is only available in the [premium version](https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
67
 
68
 
69
  = I want to thank you, where can I make a donation? =
74
 
75
  1. Filter by category in the media library. Use bulk actions to add and remove categories of multiple images at once.
76
  2. Manage categories in the media library
77
+ 3. Filter by category when inserting media [(premium version)](https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
78
 
79
  == Changelog ==
80
 
81
+ = 1.5.3 =
82
+ * Added some default languages en_US, nl_NL, de_DE
83
+ * Updated all links to use https://
84
+
85
  = 1.5.2 =
86
  * 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/)
87
  * Fixed notice "Undefined index: ids" which in some rare cases would appear.
104
  = 1.4.13 =
105
  * Improved compatibility with other plugins that use the [gallery] shortcode.
106
  * Remember author when changing categories.
107
+ * 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/)
108
 
109
  = 1.4.12 =
110
+ * Added category option to the default WordPress shortcode gallery. [Read the FAQ for howto](https://wordpress.org/plugins/wp-media-library-categories/faq/)
111
  * Improved code styling to match WordPress code standard even more strictly.
112
 
113
  = 1.4.11 =
116
  = 1.4.10 =
117
  * Stay on active page in the media library when changing categories.
118
  * Fixed PHP 5.4 strict warning.
119
+ * Added hierarchical display of the filter menu when inserting media. [(premium only)](https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
120
 
121
  = 1.4.9 =
122
+ * 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)
123
 
124
  = 1.4.8 =
125
  * Fixed media count on the categories page.
127
  * Support for WordPress 3.9
128
 
129
  = 1.4.7 =
130
+ * 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)
131
 
132
  = 1.4.6 =
133
  * Fixed bug where in some rare cases the filter by category didn't work
136
  * Fixed bug in version 1.4.4 that made default categories in WordPress invisible
137
 
138
  = 1.4.4 =
139
+ * 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/)
140
 
141
  = 1.4.2 & 1.4.3 =
142
+ * [(Premium only)](https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
143
 
144
  = 1.4.1 =
145
  * Improved bulk actions: added option to remove category from multiple media items at once
146
  * Improved bulk actions: arranged options in option group
147
 
148
  = 1.4 =
149
+ * Filter on categories when inserting media [(premium only)](https://codecanyon.net/item/media-library-categories-premium/6691290?ref=jeffrey-wp)
150
 
151
  = 1.3.2 =
152
+ * [Added taxonomy filter](https://wordpress.org/support/topic/added-taxonomy-filter)
153
+ * [Don't load unnecessary code](https://dannyvankooten.com/3882/wordpress-plugin-structure-dont-load-unnecessary-code/)
154
 
155
  = 1.3.1 =
156
  * Fixed bug (when having a category with apostrophe)