Custom Taxonomy Order NE - Version 3.0.1

Version Description

  • 2020-01-07
  • Add taxonomy parameter to get_term call for compatibility with WP 4.3.
Download this release

Release Info

Developer mpol
Plugin Icon 128x128 Custom Taxonomy Order NE
Version 3.0.1
Comparing to
See all releases

Code changes from version 3.0.0 to 3.0.1

Files changed (2) hide show
  1. customtaxorder.php +5 -5
  2. readme.txt +6 -2
customtaxorder.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: Custom Taxonomy Order
4
- Plugin URI: https://zenoweb.nl/
5
  Description: Allows for the ordering of categories and custom taxonomy terms through a simple drag-and-drop interface.
6
- Version: 3.0.0
7
  Author: Marcel Pol
8
  Author URI: https://timelord.nl/
9
  License: GPLv2 or later
@@ -12,7 +12,7 @@ Domain Path: /lang/
12
 
13
  /*
14
  Copyright 2011 - 2011 Drew Gourley
15
- Copyright 2013 - 2019 Marcel Pol (email: marcel@timelord.nl)
16
 
17
  This program is free software; you can redistribute it and/or
18
  modify it under the terms of the GNU General Public License
@@ -40,7 +40,7 @@ Domain Path: /lang/
40
 
41
 
42
  // Plugin Version
43
- define('CUSTOMTAXORDER_VER', '3.0.0');
44
 
45
 
46
  function customtaxorder_register_settings() {
@@ -392,7 +392,7 @@ function customtaxorder_wp_get_object_terms_order_filter( $terms ) {
392
  $parents = get_ancestors( $term->term_id, $term->taxonomy, 'taxonomy' );
393
  if ( is_array($parents) && ! empty($parents) ) {
394
  $ancestor_ID = array_pop( $parents );
395
- $ancestor_term = get_term($ancestor_ID);
396
  if ( is_object($ancestor_term) && isset($ancestor_term->term_order) ) {
397
  $float = floatval($term->term_order) + 10000;
398
  $term->term_order = floatval( strval($ancestor_term->term_order) . '.' . strval($float) );
1
  <?php
2
  /*
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.0.1
7
  Author: Marcel Pol
8
  Author URI: https://timelord.nl/
9
  License: GPLv2 or later
12
 
13
  /*
14
  Copyright 2011 - 2011 Drew Gourley
15
+ Copyright 2013 - 2020 Marcel Pol (email: marcel@timelord.nl)
16
 
17
  This program is free software; you can redistribute it and/or
18
  modify it under the terms of the GNU General Public License
40
 
41
 
42
  // Plugin Version
43
+ define('CUSTOMTAXORDER_VER', '3.0.1');
44
 
45
 
46
  function customtaxorder_register_settings() {
392
  $parents = get_ancestors( $term->term_id, $term->taxonomy, 'taxonomy' );
393
  if ( is_array($parents) && ! empty($parents) ) {
394
  $ancestor_ID = array_pop( $parents );
395
+ $ancestor_term = get_term($ancestor_ID, $term->taxonomy);
396
  if ( is_object($ancestor_term) && isset($ancestor_term->term_order) ) {
397
  $float = floatval($term->term_order) + 10000;
398
  $term->term_order = floatval( strval($ancestor_term->term_order) . '.' . strval($float) );
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.3
6
- Stable tag: 3.0.0
7
  License: GPLv2 or later
8
 
9
 
@@ -161,6 +161,10 @@ The left metabox lists the toplevel terms. Right (or below) are the sub-terms.
161
 
162
  == Changelog ==
163
 
 
 
 
 
164
  = 3.0.0 =
165
  * 2019-12-21
166
  * Always overwrite orderby according to our settings.
2
  Contributors: mpol
3
  Tags: term order, category order, taxonomy order, order
4
  Requires at least: 3.7
5
+ Tested up to: 5.4
6
+ Stable tag: 3.0.1
7
  License: GPLv2 or later
8
 
9
 
161
 
162
  == Changelog ==
163
 
164
+ = 3.0.1 =
165
+ * 2020-01-07
166
+ * Add taxonomy parameter to get_term call for compatibility with WP 4.3.
167
+
168
  = 3.0.0 =
169
  * 2019-12-21
170
  * Always overwrite orderby according to our settings.