Version Description
- 2020-07-07
- More compatibility with WPML plugin.
- Remove code to set taxonomy 'link_category' to public.
Download this release
Release Info
Developer | mpol |
Plugin | Custom Taxonomy Order NE |
Version | 3.2.1 |
Comparing to | |
See all releases |
Code changes from version 3.2.0 to 3.2.1
- customtaxorder.php +3 -10
- page-customtaxorder.php +2 -2
- readme.txt +7 -2
customtaxorder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Custom Taxonomy Order
|
4 |
Plugin URI: https://wordpress.org/plugins/custom-taxonomy-order-ne/
|
5 |
Description: Allows for the ordering of categories and custom taxonomy terms through a simple drag-and-drop interface.
|
6 |
-
Version: 3.2.
|
7 |
Author: Marcel Pol
|
8 |
Author URI: https://timelord.nl/
|
9 |
License: GPLv2 or later
|
@@ -40,7 +40,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
40 |
|
41 |
|
42 |
// Plugin Version
|
43 |
-
define('CUSTOMTAXORDER_VER', '3.2.
|
44 |
|
45 |
|
46 |
/*
|
@@ -305,14 +305,7 @@ function customtaxorder_get_taxonomies() {
|
|
305 |
$output = 'objects';
|
306 |
$taxonomies = get_taxonomies( $args, $output );
|
307 |
|
308 |
-
|
309 |
-
$active_plugins = get_option('active_plugins');
|
310 |
-
if ( in_array( 'link-manager/link-manager.php', $active_plugins ) ) {
|
311 |
-
$args = array( 'name' => 'link_category' );
|
312 |
-
$taxonomies2 = get_taxonomies( $args, $output );
|
313 |
-
$taxonomies = array_merge($taxonomies, $taxonomies2);
|
314 |
-
}
|
315 |
-
|
316 |
return $taxonomies;
|
317 |
|
318 |
}
|
3 |
Plugin Name: Custom Taxonomy Order
|
4 |
Plugin URI: https://wordpress.org/plugins/custom-taxonomy-order-ne/
|
5 |
Description: Allows for the ordering of categories and custom taxonomy terms through a simple drag-and-drop interface.
|
6 |
+
Version: 3.2.1
|
7 |
Author: Marcel Pol
|
8 |
Author URI: https://timelord.nl/
|
9 |
License: GPLv2 or later
|
40 |
|
41 |
|
42 |
// Plugin Version
|
43 |
+
define('CUSTOMTAXORDER_VER', '3.2.1');
|
44 |
|
45 |
|
46 |
/*
|
305 |
$output = 'objects';
|
306 |
$taxonomies = get_taxonomies( $args, $output );
|
307 |
|
308 |
+
return $taxonomies;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
return $taxonomies;
|
310 |
|
311 |
}
|
page-customtaxorder.php
CHANGED
@@ -127,9 +127,9 @@ function customtaxorder_subpage() {
|
|
127 |
if ( in_array( 'sitepress-multilingual-cms/sitepress.php', $active_plugins ) ) {
|
128 |
remove_filter( 'terms_clauses', array( $sitepress, 'terms_clauses' ), 10 );
|
129 |
remove_filter( 'get_terms', array( $sitepress, 'get_terms_filter' ), 10 );
|
130 |
-
|
131 |
remove_filter( "pre_option_{$tax}_children", array( $sitepress, 'pre_option_tax_children' ), 10, 0 );
|
132 |
-
add_filter( "pre_option_{$tax}_children", 'customtaxorder_pre_option_tax_children', 99, 0 );
|
133 |
}
|
134 |
|
135 |
$args = array(
|
127 |
if ( in_array( 'sitepress-multilingual-cms/sitepress.php', $active_plugins ) ) {
|
128 |
remove_filter( 'terms_clauses', array( $sitepress, 'terms_clauses' ), 10 );
|
129 |
remove_filter( 'get_terms', array( $sitepress, 'get_terms_filter' ), 10 );
|
130 |
+
remove_filter( 'get_terms_args', array( $sitepress, 'get_terms_args_filter' ), 10, 2 ); // Needed to get the correct list of sub-terms.
|
131 |
remove_filter( "pre_option_{$tax}_children", array( $sitepress, 'pre_option_tax_children' ), 10, 0 );
|
132 |
+
add_filter( "pre_option_{$tax}_children", 'customtaxorder_pre_option_tax_children', 99, 0 ); // Needed to fill the dropdown of sub-terms.
|
133 |
}
|
134 |
|
135 |
$args = array(
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: mpol
|
3 |
Tags: term order, category order, taxonomy order, order
|
4 |
Requires at least: 3.7
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 3.2.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
|
@@ -159,6 +159,11 @@ The left metabox lists the toplevel terms. Right (or below) are the sub-terms.
|
|
159 |
|
160 |
== Changelog ==
|
161 |
|
|
|
|
|
|
|
|
|
|
|
162 |
= 3.2.0 =
|
163 |
* 2020-07-06
|
164 |
* Improve compatibility with WPML plugin.
|
2 |
Contributors: mpol
|
3 |
Tags: term order, category order, taxonomy order, order
|
4 |
Requires at least: 3.7
|
5 |
+
Tested up to: 5.6
|
6 |
+
Stable tag: 3.2.1
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
|
159 |
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 3.2.1 =
|
163 |
+
* 2020-07-07
|
164 |
+
* More compatibility with WPML plugin.
|
165 |
+
* Remove code to set taxonomy 'link_category' to public.
|
166 |
+
|
167 |
= 3.2.0 =
|
168 |
* 2020-07-06
|
169 |
* Improve compatibility with WPML plugin.
|