Version Description
- Clear the term cache to ensure the updated order reflect for certain caches
Download this release
Release Info
Developer | nsp-code |
Plugin | Category Order and Taxonomy Terms Order |
Version | 1.5.7.6 |
Comparing to | |
See all releases |
Code changes from version 1.5.7.5 to 1.5.7.6
- readme.txt +3 -0
- taxonomy-terms-order.php +6 -3
readme.txt
CHANGED
@@ -59,6 +59,9 @@ Consider upgrading to our advanced version of this plugin at a very resonable pr
|
|
59 |
|
60 |
== Change Log ==
|
61 |
|
|
|
|
|
|
|
62 |
= 1.5.7.5 =
|
63 |
- Apply the order within admin if ignore_term_order argument is set and not true
|
64 |
- Compatibility tag update for WordPress 5.7
|
59 |
|
60 |
== Change Log ==
|
61 |
|
62 |
+
= 1.5.7.6 =
|
63 |
+
- Clear the term cache to ensure the updated order reflect for certain caches
|
64 |
+
|
65 |
= 1.5.7.5 =
|
66 |
- Apply the order within admin if ignore_term_order argument is set and not true
|
67 |
- Compatibility tag update for WordPress 5.7
|
taxonomy-terms-order.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Category Order and Taxonomy Terms Order
|
4 |
Plugin URI: http://www.nsp-code.com
|
5 |
Description: Order Categories and all custom taxonomies terms (hierarchically) and child terms using a Drag and Drop Sortable javascript capability.
|
6 |
-
Version: 1.5.7.
|
7 |
Author: Nsp-Code
|
8 |
Author URI: https://www.nsp-code.com
|
9 |
Author Email: electronice_delphi@yahoo.com
|
@@ -189,9 +189,12 @@ Domain Path: /languages/
|
|
189 |
}
|
190 |
|
191 |
if (is_array($items) && count($items) > 0)
|
192 |
-
foreach( $items as $item_key => $term_id )
|
193 |
{
|
194 |
-
|
|
|
|
|
|
|
|
|
195 |
}
|
196 |
}
|
197 |
|
3 |
Plugin Name: Category Order and Taxonomy Terms Order
|
4 |
Plugin URI: http://www.nsp-code.com
|
5 |
Description: Order Categories and all custom taxonomies terms (hierarchically) and child terms using a Drag and Drop Sortable javascript capability.
|
6 |
+
Version: 1.5.7.6
|
7 |
Author: Nsp-Code
|
8 |
Author URI: https://www.nsp-code.com
|
9 |
Author Email: electronice_delphi@yahoo.com
|
189 |
}
|
190 |
|
191 |
if (is_array($items) && count($items) > 0)
|
|
|
192 |
{
|
193 |
+
foreach( $items as $item_key => $term_id )
|
194 |
+
{
|
195 |
+
$wpdb->update( $wpdb->terms, array('term_order' => ($item_key + 1)), array('term_id' => $term_id) );
|
196 |
+
}
|
197 |
+
clean_term_cache($items);
|
198 |
}
|
199 |
}
|
200 |
|