Version Description
- Fix taxonomy checkbox on media modal (when using custom taxonomy)
Download this release
Release Info
Developer | jeffrey-wp |
Plugin | Media Library Categories |
Version | 1.9.6 |
Comparing to | |
See all releases |
Code changes from version 1.9.5 to 1.9.6
- include/walkers.php +7 -1
- index.php +2 -2
- readme.txt +4 -1
include/walkers.php
CHANGED
@@ -73,9 +73,15 @@ class wpmediacategory_walker_media_taxonomy_checklist extends Walker {
|
|
73 |
|
74 |
// Default taxonomy
|
75 |
$taxonomy = 'category';
|
76 |
-
// Add filter to change the default taxonomy
|
77 |
$taxonomy = apply_filters( 'wpmediacategory_taxonomy', $taxonomy );
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
$name = 'tax_input[' . $taxonomy . ']';
|
80 |
$class = in_array( $category->term_id, $args['popular_cats'] ) ? ' class="popular-category"' : '';
|
81 |
|
73 |
|
74 |
// Default taxonomy
|
75 |
$taxonomy = 'category';
|
76 |
+
// Add filter to change the default taxonomy (so we can set the override in a custom script)
|
77 |
$taxonomy = apply_filters( 'wpmediacategory_taxonomy', $taxonomy );
|
78 |
|
79 |
+
// Get custom taxonomy slug from settings page
|
80 |
+
$options = get_option( 'wpmlc_settings' );
|
81 |
+
if ( ! empty( $options ) && ! empty( $options['wpmediacategory_taxonomy'] ) ) {
|
82 |
+
$taxonomy = $options['wpmediacategory_taxonomy'];
|
83 |
+
}
|
84 |
+
|
85 |
$name = 'tax_input[' . $taxonomy . ']';
|
86 |
$class = in_array( $category->term_id, $args['popular_cats'] ) ? ' class="popular-category"' : '';
|
87 |
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.9.
|
7 |
* Author: Jeffrey-WP
|
8 |
* Text Domain: wp-media-library-categories
|
9 |
* Domain Path: /languages
|
@@ -22,7 +22,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
22 |
*/
|
23 |
class wpMediaLibraryCategories {
|
24 |
|
25 |
-
public $plugin_version = '1.9.
|
26 |
|
27 |
/**
|
28 |
* Initialize the hooks and filters
|
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.9.6
|
7 |
* Author: Jeffrey-WP
|
8 |
* Text Domain: wp-media-library-categories
|
9 |
* Domain Path: /languages
|
22 |
*/
|
23 |
class wpMediaLibraryCategories {
|
24 |
|
25 |
+
public $plugin_version = '1.9.6';
|
26 |
|
27 |
/**
|
28 |
* Initialize the hooks and filters
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: category, categories, media, library, medialibrary, image, images, media category, media categories
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.3
|
7 |
-
Stable tag: 1.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -97,6 +97,9 @@ Maintaining a plugin and keeping it up to date is hard work. Please support me b
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
100 |
= 1.9.5 =
|
101 |
* Add autocomplete search to the category dropdown (which can be turned on under Settings → Media)
|
102 |
* Fix some translation strings
|
4 |
Tags: category, categories, media, library, medialibrary, image, images, media category, media categories
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 1.9.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 1.9.6 =
|
101 |
+
* Fix taxonomy checkbox on media modal (when using custom taxonomy)
|
102 |
+
|
103 |
= 1.9.5 =
|
104 |
* Add autocomplete search to the category dropdown (which can be turned on under Settings → Media)
|
105 |
* Fix some translation strings
|