Category Order and Taxonomy Terms Order - Version 1.5.2.2

Version Description

  • Default admin capability changed from install_plugins to manage_options to prevent DISALLOW_FILE_MODS issue. https://wordpress.org/support/topic/plugin-breaks-when-disallow_file_mods-is-set-to-true/
    • Prepare plugin for Composer package
    • Interface table th elements titles left align
    • Interface Taxonomy terms count fix
Download this release

Release Info

Developer nsp-code
Plugin Icon 128x128 Category Order and Taxonomy Terms Order
Version 1.5.2.2
Comparing to
See all releases

Code changes from version 1.5 to 1.5.2.2

composer.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name" : "nsp-code/taxonomy-terms-order",
3
+ "description" : "Order Categories and all custom taxonomies terms (hierarchically) and child terms using a Drag and Drop Sortable javascript capability.",
4
+ "keywords" : ["category order","terms order", "taxonomy order", "admin order"],
5
+ "homepage" : "http://www.nsp-code.com/",
6
+ "authors" : [
7
+ {
8
+ "name": "Nsp Code",
9
+ "email": "contact@nsp-code.com",
10
+ "homepage": "http://www.nsp-code.com/"
11
+ }
12
+ ],
13
+ "type" : "wordpress-plugin",
14
+ "require" : {
15
+ "composer/installers": "~1.0"
16
+ }
17
+ }
css/to.css CHANGED
@@ -13,7 +13,7 @@ h2.subtitle {font-size: 15px; font-weight: bold; padding: 20px 0 10px 0}
13
  #order-terms #tto_sortable li.placeholder{border: dashed 2px #ccc;height:30px; background-color: #FFF;}
14
 
15
  .wp-list-taxonomy {width: 100%}
16
- .wp-list-taxonomy thead tr th{padding: 10px 0;}
17
  .wp-list-taxonomy tr {background-color: #FCFCFC;}
18
  .wp-list-taxonomy tbody th.check-column { padding: 9px 0 22px;}
19
  .wp-list-taxonomy td { color: #555555;}
13
  #order-terms #tto_sortable li.placeholder{border: dashed 2px #ccc;height:30px; background-color: #FFF;}
14
 
15
  .wp-list-taxonomy {width: 100%}
16
+ .wp-list-taxonomy thead tr th{padding: 10px 0; text-align: left;}
17
  .wp-list-taxonomy tr {background-color: #FCFCFC;}
18
  .wp-list-taxonomy tbody th.check-column { padding: 9px 0 22px;}
19
  .wp-list-taxonomy td { color: #555555;}
include/functions.php CHANGED
@@ -11,7 +11,7 @@
11
  $settings = get_option('tto_options');
12
 
13
  $defaults = array (
14
- 'capability' => 'install_plugins',
15
  'autosort' => '1',
16
  'adminsort' => '1'
17
  );
11
  $settings = get_option('tto_options');
12
 
13
  $defaults = array (
14
+ 'capability' => 'manage_options',
15
  'autosort' => '1',
16
  'adminsort' => '1'
17
  );
include/interface.php CHANGED
@@ -1,245 +1,249 @@
1
- <?php
2
-
3
-
4
- function TOPluginInterface()
5
- {
6
- global $wpdb, $wp_locale;
7
-
8
- $taxonomy = isset($_GET['taxonomy']) ? sanitize_key($_GET['taxonomy']) : '';
9
- $post_type = isset($_GET['post_type']) ? sanitize_key($_GET['post_type']) : '';
10
- if(empty($post_type))
11
- {
12
- $screen = get_current_screen();
13
-
14
- if(isset($screen->post_type) && !empty($screen->post_type))
15
- $post_type = $screen->post_type;
16
- else
17
- {
18
- switch($screen->parent_file)
19
- {
20
- case "upload.php" :
21
- $post_type = 'attachment';
22
- break;
23
-
24
- default:
25
- $post_type = 'post';
26
- }
27
- }
28
- }
29
-
30
- $post_type_data = get_post_type_object($post_type);
31
-
32
- if (!taxonomy_exists($taxonomy))
33
- $taxonomy = '';
34
-
35
- ?>
36
- <div class="wrap">
37
- <div class="icon32" id="icon-edit"><br></div>
38
- <h2><?php _e( "Taxonomy Order", 'taxonomy-terms-order' ) ?></h2>
39
-
40
- <?php tto_info_box() ?>
41
-
42
- <div id="ajax-response"></div>
43
-
44
- <noscript>
45
- <div class="error message">
46
- <p><?php _e( "This plugin can't work without javascript, because it's use drag and drop and AJAX.", 'taxonomy-terms-order' ) ?></p>
47
- </div>
48
- </noscript>
49
-
50
- <div class="clear"></div>
51
-
52
- <?php
53
-
54
- $current_section_parent_file = '';
55
- switch($post_type)
56
- {
57
-
58
- case "attachment" :
59
- $current_section_parent_file = "upload.php";
60
- break;
61
-
62
- default :
63
- $current_section_parent_file = "edit.php";
64
- break;
65
- }
66
-
67
-
68
- ?>
69
-
70
- <form action="<?php echo $current_section_parent_file ?>" method="get" id="to_form">
71
- <input type="hidden" name="page" value="to-interface-<?php echo esc_attr($post_type) ?>" />
72
- <?php
73
-
74
- if (!in_array($post_type, array('post', 'attachment')))
75
- echo '<input type="hidden" name="post_type" value="'. esc_attr($post_type) .'" />';
76
-
77
- //output all available taxonomies for this post type
78
-
79
- $post_type_taxonomies = get_object_taxonomies($post_type);
80
-
81
- foreach ($post_type_taxonomies as $key => $taxonomy_name)
82
- {
83
- $taxonomy_info = get_taxonomy($taxonomy_name);
84
- if ($taxonomy_info->hierarchical !== TRUE)
85
- unset($post_type_taxonomies[$key]);
86
- }
87
-
88
- //use the first taxonomy if emtpy taxonomy
89
- if ($taxonomy == '' || !taxonomy_exists($taxonomy))
90
- {
91
- reset($post_type_taxonomies);
92
- $taxonomy = current($post_type_taxonomies);
93
- }
94
-
95
- if (count($post_type_taxonomies) > 1)
96
- {
97
-
98
- ?>
99
-
100
- <h2 class="subtitle"><?php echo ucfirst($post_type_data->labels->name) ?> <?php _e( "Taxonomies", 'taxonomy-terms-order' ) ?></h2>
101
- <table cellspacing="0" class="wp-list-taxonomy">
102
- <thead>
103
- <tr>
104
- <th style="" class="column-cb check-column" id="cb" scope="col">&nbsp;</th><th style="" class="" id="author" scope="col"><?php _e( "Taxonomy Title", 'taxonomy-terms-order' ) ?></th><th style="" class="manage-column" id="categories" scope="col"><?php _e( "Total Posts", 'taxonomy-terms-order' ) ?></th> </tr>
105
- </thead>
106
-
107
-
108
- <tbody id="the-list">
109
- <?php
110
-
111
- $alternate = FALSE;
112
- foreach ($post_type_taxonomies as $post_type_taxonomy)
113
- {
114
- $taxonomy_info = get_taxonomy($post_type_taxonomy);
115
-
116
- $alternate = $alternate === TRUE ? FALSE :TRUE;
117
-
118
- $taxonomy_terms = get_terms($key);
119
-
120
- ?>
121
- <tr valign="top" class="<?php if ($alternate === TRUE) {echo 'alternate ';} ?>" id="taxonomy-<?php echo esc_attr($taxonomy) ?>">
122
- <th class="check-column" scope="row"><input type="radio" onclick="to_change_taxonomy(this)" value="<?php echo $post_type_taxonomy ?>" <?php if ($post_type_taxonomy == $taxonomy) {echo 'checked="checked"';} ?> name="taxonomy">&nbsp;</th>
123
- <td class="categories column-categories"><b><?php echo $taxonomy_info->label ?></b> (<?php echo $taxonomy_info->labels->singular_name; ?>)</td>
124
- <td class="categories column-categories"><?php echo count($taxonomy_terms) ?></td>
125
- </tr>
126
-
127
- <?php
128
- }
129
- ?>
130
- </tbody>
131
- </table>
132
- <br />
133
- <?php
134
- }
135
- ?>
136
-
137
- <div id="order-terms">
138
-
139
-
140
-
141
- <div id="post-body">
142
-
143
- <ul class="sortable" id="tto_sortable">
144
- <?php
145
- listTerms($taxonomy);
146
- ?>
147
- </ul>
148
-
149
- <div class="clear"></div>
150
- </div>
151
-
152
- <div class="alignleft actions">
153
- <p class="submit">
154
- <a href="javascript:;" class="save-order button-primary"><?php _e( "Update", 'taxonomy-terms-order' ) ?></a>
155
- </p>
156
- </div>
157
-
158
- </div>
159
-
160
- </form>
161
-
162
- <script type="text/javascript">
163
- jQuery(document).ready(function() {
164
-
165
- var NestedSortableSerializedData;
166
- jQuery("ul.sortable").sortable({
167
- 'tolerance':'intersect',
168
- 'cursor':'pointer',
169
- 'items':'> li',
170
- 'axi': 'y',
171
- 'placeholder':'placeholder',
172
- 'nested': 'ul'
173
- });
174
- });
175
-
176
-
177
- jQuery(".save-order").bind( "click", function() {
178
-
179
- var mySortable = new Array();
180
- jQuery(".sortable").each( function(){
181
-
182
- var serialized = jQuery(this).sortable("serialize");
183
-
184
- var parent_tag = jQuery(this).parent().get(0).tagName;
185
- parent_tag = parent_tag.toLowerCase()
186
- if (parent_tag == 'li')
187
- {
188
- //
189
- var tag_id = jQuery(this).parent().attr('id');
190
- mySortable[tag_id] = serialized;
191
- }
192
- else
193
- {
194
- //
195
- mySortable[0] = serialized;
196
- }
197
- });
198
-
199
- //serialize the array
200
- var serialize_data = serialize(mySortable);
201
-
202
- jQuery.post( ajaxurl, { action:'update-taxonomy-order', order: serialize_data, taxonomy : '<?php echo $taxonomy ?>' }, function() {
203
- jQuery("#ajax-response").html('<div class="message updated fade"><p><?php _e( "Items Order Updated", 'taxonomy-terms-order' ) ?></p></div>');
204
- jQuery("#ajax-response div").delay(3000).hide("slow");
205
- });
206
- });
207
- </script>
208
-
209
- </div>
210
- <?php
211
-
212
-
213
- }
214
-
215
-
216
- function listTerms($taxonomy)
217
- {
218
-
219
- // Query pages.
220
- $args = array(
221
- 'orderby' => 'term_order',
222
- 'depth' => 0,
223
- 'child_of' => 0,
224
- 'hide_empty' => 0
225
- );
226
- $taxonomy_terms = get_terms($taxonomy, $args);
227
-
228
- $output = '';
229
- if (count($taxonomy_terms) > 0)
230
- {
231
- $output = TOwalkTree($taxonomy_terms, $args['depth'], $args);
232
- }
233
-
234
- echo $output;
235
-
236
- }
237
-
238
- function TOwalkTree($taxonomy_terms, $depth, $r)
239
- {
240
- $walker = new TO_Terms_Walker;
241
- $args = array($taxonomy_terms, $depth, $r);
242
- return call_user_func_array(array(&$walker, 'walk'), $args);
243
- }
244
-
 
 
 
 
245
  ?>
1
+ <?php
2
+
3
+
4
+ function TOPluginInterface()
5
+ {
6
+ global $wpdb, $wp_locale;
7
+
8
+ $taxonomy = isset($_GET['taxonomy']) ? sanitize_key($_GET['taxonomy']) : '';
9
+ $post_type = isset($_GET['post_type']) ? sanitize_key($_GET['post_type']) : '';
10
+ if(empty($post_type))
11
+ {
12
+ $screen = get_current_screen();
13
+
14
+ if(isset($screen->post_type) && !empty($screen->post_type))
15
+ $post_type = $screen->post_type;
16
+ else
17
+ {
18
+ switch($screen->parent_file)
19
+ {
20
+ case "upload.php" :
21
+ $post_type = 'attachment';
22
+ break;
23
+
24
+ default:
25
+ $post_type = 'post';
26
+ }
27
+ }
28
+ }
29
+
30
+ $post_type_data = get_post_type_object($post_type);
31
+
32
+ if (!taxonomy_exists($taxonomy))
33
+ $taxonomy = '';
34
+
35
+ ?>
36
+ <div class="wrap">
37
+ <div class="icon32" id="icon-edit"><br></div>
38
+ <h2><?php _e( "Taxonomy Order", 'taxonomy-terms-order' ) ?></h2>
39
+
40
+ <?php tto_info_box() ?>
41
+
42
+ <div id="ajax-response"></div>
43
+
44
+ <noscript>
45
+ <div class="error message">
46
+ <p><?php _e( "This plugin can't work without javascript, because it's use drag and drop and AJAX.", 'taxonomy-terms-order' ) ?></p>
47
+ </div>
48
+ </noscript>
49
+
50
+ <div class="clear"></div>
51
+
52
+ <?php
53
+
54
+ $current_section_parent_file = '';
55
+ switch($post_type)
56
+ {
57
+
58
+ case "attachment" :
59
+ $current_section_parent_file = "upload.php";
60
+ break;
61
+
62
+ default :
63
+ $current_section_parent_file = "edit.php";
64
+ break;
65
+ }
66
+
67
+
68
+ ?>
69
+
70
+ <form action="<?php echo $current_section_parent_file ?>" method="get" id="to_form">
71
+ <input type="hidden" name="page" value="to-interface-<?php echo esc_attr($post_type) ?>" />
72
+ <?php
73
+
74
+ if (!in_array($post_type, array('post', 'attachment')))
75
+ echo '<input type="hidden" name="post_type" value="'. esc_attr($post_type) .'" />';
76
+
77
+ //output all available taxonomies for this post type
78
+
79
+ $post_type_taxonomies = get_object_taxonomies($post_type);
80
+
81
+ foreach ($post_type_taxonomies as $key => $taxonomy_name)
82
+ {
83
+ $taxonomy_info = get_taxonomy($taxonomy_name);
84
+ if ($taxonomy_info->hierarchical !== TRUE)
85
+ unset($post_type_taxonomies[$key]);
86
+ }
87
+
88
+ //use the first taxonomy if emtpy taxonomy
89
+ if ($taxonomy == '' || !taxonomy_exists($taxonomy))
90
+ {
91
+ reset($post_type_taxonomies);
92
+ $taxonomy = current($post_type_taxonomies);
93
+ }
94
+
95
+ if (count($post_type_taxonomies) > 1)
96
+ {
97
+
98
+ ?>
99
+
100
+ <h2 class="subtitle"><?php echo ucfirst($post_type_data->labels->name) ?> <?php _e( "Taxonomies", 'taxonomy-terms-order' ) ?></h2>
101
+ <table cellspacing="0" class="wp-list-taxonomy">
102
+ <thead>
103
+ <tr>
104
+ <th style="" class="column-cb check-column" id="cb" scope="col">&nbsp;</th><th style="" class="" id="author" scope="col"><?php _e( "Taxonomy Title", 'taxonomy-terms-order' ) ?></th><th style="" class="manage-column" id="categories" scope="col"><?php _e( "Total Posts", 'taxonomy-terms-order' ) ?></th> </tr>
105
+ </thead>
106
+
107
+
108
+ <tbody id="the-list">
109
+ <?php
110
+
111
+ $alternate = FALSE;
112
+ foreach ($post_type_taxonomies as $post_type_taxonomy)
113
+ {
114
+ $taxonomy_info = get_taxonomy($post_type_taxonomy);
115
+
116
+ $alternate = $alternate === TRUE ? FALSE :TRUE;
117
+
118
+ $args = array(
119
+ 'hide_empty' => 0,
120
+ 'taxonomy' => $post_type_taxonomy
121
+ );
122
+ $taxonomy_terms = get_terms( $args );
123
+
124
+ ?>
125
+ <tr valign="top" class="<?php if ($alternate === TRUE) {echo 'alternate ';} ?>" id="taxonomy-<?php echo esc_attr($taxonomy) ?>">
126
+ <th class="check-column" scope="row"><input type="radio" onclick="to_change_taxonomy(this)" value="<?php echo $post_type_taxonomy ?>" <?php if ($post_type_taxonomy == $taxonomy) {echo 'checked="checked"';} ?> name="taxonomy">&nbsp;</th>
127
+ <td class="categories column-categories"><b><?php echo $taxonomy_info->label ?></b> (<?php echo $taxonomy_info->labels->singular_name; ?>)</td>
128
+ <td class="categories column-categories"><?php echo count($taxonomy_terms) ?></td>
129
+ </tr>
130
+
131
+ <?php
132
+ }
133
+ ?>
134
+ </tbody>
135
+ </table>
136
+ <br />
137
+ <?php
138
+ }
139
+ ?>
140
+
141
+ <div id="order-terms">
142
+
143
+
144
+
145
+ <div id="post-body">
146
+
147
+ <ul class="sortable" id="tto_sortable">
148
+ <?php
149
+ listTerms($taxonomy);
150
+ ?>
151
+ </ul>
152
+
153
+ <div class="clear"></div>
154
+ </div>
155
+
156
+ <div class="alignleft actions">
157
+ <p class="submit">
158
+ <a href="javascript:;" class="save-order button-primary"><?php _e( "Update", 'taxonomy-terms-order' ) ?></a>
159
+ </p>
160
+ </div>
161
+
162
+ </div>
163
+
164
+ </form>
165
+
166
+ <script type="text/javascript">
167
+ jQuery(document).ready(function() {
168
+
169
+ var NestedSortableSerializedData;
170
+ jQuery("ul.sortable").sortable({
171
+ 'tolerance':'intersect',
172
+ 'cursor':'pointer',
173
+ 'items':'> li',
174
+ 'axi': 'y',
175
+ 'placeholder':'placeholder',
176
+ 'nested': 'ul'
177
+ });
178
+ });
179
+
180
+
181
+ jQuery(".save-order").bind( "click", function() {
182
+
183
+ var mySortable = new Array();
184
+ jQuery(".sortable").each( function(){
185
+
186
+ var serialized = jQuery(this).sortable("serialize");
187
+
188
+ var parent_tag = jQuery(this).parent().get(0).tagName;
189
+ parent_tag = parent_tag.toLowerCase()
190
+ if (parent_tag == 'li')
191
+ {
192
+ //
193
+ var tag_id = jQuery(this).parent().attr('id');
194
+ mySortable[tag_id] = serialized;
195
+ }
196
+ else
197
+ {
198
+ //
199
+ mySortable[0] = serialized;
200
+ }
201
+ });
202
+
203
+ //serialize the array
204
+ var serialize_data = serialize(mySortable);
205
+
206
+ jQuery.post( ajaxurl, { action:'update-taxonomy-order', order: serialize_data, taxonomy : '<?php echo $taxonomy ?>' }, function() {
207
+ jQuery("#ajax-response").html('<div class="message updated fade"><p><?php _e( "Items Order Updated", 'taxonomy-terms-order' ) ?></p></div>');
208
+ jQuery("#ajax-response div").delay(3000).hide("slow");
209
+ });
210
+ });
211
+ </script>
212
+
213
+ </div>
214
+ <?php
215
+
216
+
217
+ }
218
+
219
+
220
+ function listTerms($taxonomy)
221
+ {
222
+
223
+ // Query pages.
224
+ $args = array(
225
+ 'orderby' => 'term_order',
226
+ 'depth' => 0,
227
+ 'child_of' => 0,
228
+ 'hide_empty' => 0
229
+ );
230
+ $taxonomy_terms = get_terms($taxonomy, $args);
231
+
232
+ $output = '';
233
+ if (count($taxonomy_terms) > 0)
234
+ {
235
+ $output = TOwalkTree($taxonomy_terms, $args['depth'], $args);
236
+ }
237
+
238
+ echo $output;
239
+
240
+ }
241
+
242
+ function TOwalkTree($taxonomy_terms, $depth, $r)
243
+ {
244
+ $walker = new TO_Terms_Walker;
245
+ $args = array($taxonomy_terms, $depth, $r);
246
+ return call_user_func_array(array(&$walker, 'walk'), $args);
247
+ }
248
+
249
  ?>
include/options.php CHANGED
@@ -39,7 +39,7 @@ function to_plugin_options()
39
  <option value="edit_posts" <?php if (isset($options['capability']) && $options['capability'] == "edit_posts") echo 'selected="selected"'?>><?php _e('Contributor', 'taxonomy-terms-order') ?></option>
40
  <option value="publish_posts" <?php if (isset($options['capability']) && $options['capability'] == "publish_posts") echo 'selected="selected"'?>><?php _e('Author', 'taxonomy-terms-order') ?></option>
41
  <option value="publish_pages" <?php if (isset($options['capability']) && $options['capability'] == "publish_pages") echo 'selected="selected"'?>><?php _e('Editor', 'taxonomy-terms-order') ?></option>
42
- <option value="install_plugins" <?php if (!isset($options['capability']) || empty($options['capability']) || (isset($options['capability']) && $options['capability'] == "install_plugins")) echo 'selected="selected"'?>><?php _e('Administrator', 'taxonomy-terms-order') ?></option>
43
  </select>
44
  </td>
45
  </tr>
39
  <option value="edit_posts" <?php if (isset($options['capability']) && $options['capability'] == "edit_posts") echo 'selected="selected"'?>><?php _e('Contributor', 'taxonomy-terms-order') ?></option>
40
  <option value="publish_posts" <?php if (isset($options['capability']) && $options['capability'] == "publish_posts") echo 'selected="selected"'?>><?php _e('Author', 'taxonomy-terms-order') ?></option>
41
  <option value="publish_pages" <?php if (isset($options['capability']) && $options['capability'] == "publish_pages") echo 'selected="selected"'?>><?php _e('Editor', 'taxonomy-terms-order') ?></option>
42
+ <option value="manage_options" <?php if (!isset($options['capability']) || empty($options['capability']) || (isset($options['capability']) && $options['capability'] == "manage_options")) echo 'selected="selected"'?>><?php _e('Administrator', 'taxonomy-terms-order') ?></option>
43
  </select>
44
  </td>
45
  </tr>
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Category Order and Taxonomy Terms Order ===
2
  Contributors: nsp-code
3
  Donate link: http://www.nsp-code.com/donate.php
4
- Tags: category order,terms order, taxonomy order, admin order
5
  Requires at least: 2.8
6
- Tested up to: 4.7.5
7
- Stable tag: 1.5
8
 
9
  Order Categories and all custom taxonomies terms (hierarchically) and child terms using a Drag and Drop Sortable javascript capability.
10
 
@@ -51,8 +51,18 @@ Absolutely, the plugin can do that. In fact you can configure so only the admin
51
 
52
  All ideas are welcome and i put them on my list to be implemented into the new versions. Anyway this may take time, but if you are in a rush, please consider a small donation and we can arrange something.
53
 
 
 
 
 
54
  == Change Log ==
55
 
 
 
 
 
 
 
56
  = 1.5 =
57
  - Included 'ignore_term_order' to force menu_order ignore when autosort active.
58
  - Translations issues update
1
  === Category Order and Taxonomy Terms Order ===
2
  Contributors: nsp-code
3
  Donate link: http://www.nsp-code.com/donate.php
4
+ Tags: category order,terms order, taxonomy order, admin order, categories sort, order category
5
  Requires at least: 2.8
6
+ Tested up to: 4.8.1
7
+ Stable tag: 1.5.2.2
8
 
9
  Order Categories and all custom taxonomies terms (hierarchically) and child terms using a Drag and Drop Sortable javascript capability.
10
 
51
 
52
  All ideas are welcome and i put them on my list to be implemented into the new versions. Anyway this may take time, but if you are in a rush, please consider a small donation and we can arrange something.
53
 
54
+ = I still need more features =
55
+
56
+ Consider upgrading to our advanced version of this plugin at a very resonable price <a target="_blank" href="http://www.nsp-code.com/premium-plugins/wordpress-plugins/advanced-taxonomy-terms-order/">Advanced Taxonomy Terms Order Order</a>
57
+
58
  == Change Log ==
59
 
60
+ = 1.5.2.2 =
61
+ - Default admin capability changed from install_plugins to manage_options to prevent DISALLOW_FILE_MODS issue. https://wordpress.org/support/topic/plugin-breaks-when-disallow_file_mods-is-set-to-true/
62
+ - Prepare plugin for Composer package
63
+ - Interface table th elements titles left align
64
+ - Interface Taxonomy terms count fix
65
+
66
  = 1.5 =
67
  - Included 'ignore_term_order' to force menu_order ignore when autosort active.
68
  - Translations issues update
taxonomy-terms-order.php CHANGED
@@ -2,8 +2,8 @@
2
  /*
3
  Plugin Name: Category Order and Taxonomy Terms Order
4
  Plugin URI: http://www.nsp-code.com
5
- Description: Category Order and Taxonomy Terms Order
6
- Version: 1.5
7
  Author: Nsp-Code
8
  Author URI: http://www.nsp-code.com
9
  Author Email: electronice_delphi@yahoo.com
@@ -90,7 +90,7 @@ Domain Path: /languages/
90
  }
91
  else
92
  {
93
- $capability = 'install_plugins';
94
  }
95
 
96
  //put a menu within all custom types if apply
@@ -179,6 +179,7 @@ Domain Path: /languages/
179
  }
180
  }
181
 
 
182
 
183
  die();
184
  }
2
  /*
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.2.2
7
  Author: Nsp-Code
8
  Author URI: http://www.nsp-code.com
9
  Author Email: electronice_delphi@yahoo.com
90
  }
91
  else
92
  {
93
+ $capability = 'manage_options';
94
  }
95
 
96
  //put a menu within all custom types if apply
179
  }
180
  }
181
 
182
+ do_action('tto/update-order');
183
 
184
  die();
185
  }