Version Description
- 2018-02-16
- Sort terms with numeric values correctly (thanks empiresafe).
Download this release
Release Info
Developer | mpol |
Plugin | Custom Taxonomy Order NE |
Version | 2.9.3 |
Comparing to | |
See all releases |
Code changes from version 2.9.2 to 2.9.3
- customtaxorder.php +3 -3
- js/script.js +1 -3
- readme.txt +5 -1
customtaxorder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Custom Taxonomy Order NE
|
4 |
Plugin URI: http://products.zenoweb.nl/free-wordpress-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: 2.9.
|
7 |
Author: Marcel Pol
|
8 |
Author URI: http://zenoweb.nl/
|
9 |
License: GPLv2 or later
|
@@ -12,7 +12,7 @@ Domain Path: /lang/
|
|
12 |
|
13 |
/*
|
14 |
Copyright 2011 - 2011 Drew Gourley
|
15 |
-
Copyright 2013 -
|
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', '2.9.
|
44 |
|
45 |
|
46 |
function customtaxorder_register_settings() {
|
3 |
Plugin Name: Custom Taxonomy Order NE
|
4 |
Plugin URI: http://products.zenoweb.nl/free-wordpress-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: 2.9.3
|
7 |
Author: Marcel Pol
|
8 |
Author URI: http://zenoweb.nl/
|
9 |
License: GPLv2 or later
|
12 |
|
13 |
/*
|
14 |
Copyright 2011 - 2011 Drew Gourley
|
15 |
+
Copyright 2013 - 2018 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', '2.9.3');
|
44 |
|
45 |
|
46 |
function customtaxorder_register_settings() {
|
js/script.js
CHANGED
@@ -74,7 +74,5 @@ function customtaxorder_orderalpha() {
|
|
74 |
|
75 |
// Ascending sort
|
76 |
function customtaxorder_asc_sort(a, b) {
|
77 |
-
|
78 |
-
//console.log (jQuery(a).text());
|
79 |
-
return jQuery(a).text().toUpperCase().localeCompare(jQuery(b).text().toUpperCase());
|
80 |
}
|
74 |
|
75 |
// Ascending sort
|
76 |
function customtaxorder_asc_sort(a, b) {
|
77 |
+
return jQuery(a).text().localeCompare(jQuery(b).text(), undefined, {numeric: true, sensitivity: 'base'});
|
|
|
|
|
78 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: mpol
|
|
3 |
Tags: term order, category order, taxonomy order, order
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 2.9.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
|
@@ -137,6 +137,10 @@ The left metabox lists the toplevel terms. Right (or below) are the sub-terms.
|
|
137 |
|
138 |
== Changelog ==
|
139 |
|
|
|
|
|
|
|
|
|
140 |
= 2.9.2 =
|
141 |
* 2017-11-30
|
142 |
* Add action 'custom_taxonomy_order_ne_settings_buttons' to settings page.
|
3 |
Tags: term order, category order, taxonomy order, order
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 2.9.3
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
|
137 |
|
138 |
== Changelog ==
|
139 |
|
140 |
+
= 2.9.3 =
|
141 |
+
* 2018-02-16
|
142 |
+
* Sort terms with numeric values correctly (thanks empiresafe).
|
143 |
+
|
144 |
= 2.9.2 =
|
145 |
* 2017-11-30
|
146 |
* Add action 'custom_taxonomy_order_ne_settings_buttons' to settings page.
|