Post Types Order - Version 1.8.9.2

Version Description

  • WPDB Prepare argument fix
    • User preferance objects per page set to default if empty
Download this release

Release Info

Developer nsp-code
Plugin Icon 128x128 Post Types Order
Version 1.8.9.2
Comparing to
See all releases

Code changes from version 1.8.9 to 1.8.9.2

include/cpto-class.php CHANGED
@@ -171,6 +171,8 @@
171
 
172
  global $userdata;
173
  $objects_per_page = get_user_meta($userdata->ID ,'edit_post_per_page', TRUE);
 
 
174
 
175
  $edit_start_at = $paged * $objects_per_page - $objects_per_page;
176
  $index = 0;
171
 
172
  global $userdata;
173
  $objects_per_page = get_user_meta($userdata->ID ,'edit_post_per_page', TRUE);
174
+ if(empty($objects_per_page))
175
+ $objects_per_page = 20;
176
 
177
  $edit_start_at = $paged * $objects_per_page - $objects_per_page;
178
  $index = 0;
post-types-order.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.nsp-code.com
5
  Description: Posts Order and Post Types Objects Order using a Drag and Drop Sortable javascript capability
6
  Author: Nsp Code
7
  Author URI: http://www.nsp-code.com
8
- Version: 1.8.9
9
  Text Domain: post-types-order
10
  Domain Path: /languages/
11
  */
@@ -276,7 +276,7 @@ Domain Path: /languages/
276
 
277
  if (count($results) > 0)
278
  {
279
- $where .= $wpdb->prepare( " AND p.menu_order = %d". $current_menu_order );
280
  }
281
  else
282
  {
5
  Description: Posts Order and Post Types Objects Order using a Drag and Drop Sortable javascript capability
6
  Author: Nsp Code
7
  Author URI: http://www.nsp-code.com
8
+ Version: 1.8.9.2
9
  Text Domain: post-types-order
10
  Domain Path: /languages/
11
  */
276
 
277
  if (count($results) > 0)
278
  {
279
+ $where .= $wpdb->prepare( " AND p.menu_order = %d", $current_menu_order );
280
  }
281
  else
282
  {
readme.txt CHANGED
@@ -4,14 +4,17 @@ Donate link: http://www.nsp-code.com/donate.php
4
  Tags: post order, posts order, sort, post sort, posts sort, post type order, custom order, admin posts order
5
  Requires at least: 2.8
6
  Tested up to: 4.5.2
7
- Stable tag: 1.8.9
 
8
 
9
- Post Order and custom Post Type Objects (posts, any custom post types) using a Drag and Drop Sortable JavaScript AJAX interface or within default WordPress post type archive.
10
 
11
  == Description ==
12
 
13
- <strong>Over 1.700.000 DOWNLOADS and near PERFECT rating out of 150 REVIEWS</strong>. <br />
14
- A powerful plugin, Order Posts and Post Types Objects using a Drag and Drop Sortable JavaScript capability. The order can be customized within default WordPress post type archive list page or a separate Re-Order interface which display all objects.
 
 
15
  It allow to reorder the posts for any custom post types you defined, including the default Posts. Also you can display the posts within admin interface sorted per your new sort. Post Order has never been easier.
16
 
17
  = Usage =
@@ -22,6 +25,7 @@ This was built considering for everyone to be able to use no matter the WordPres
22
  * A new setting page will be created within Settings > Post Types Order, you should check with that, and make a first options save.
23
  * Using the AutoSort option as ON you don't need to worry about any code changes, the plugin will do the post order update on fly.
24
  * Use the Re-Order interface which appear to every custom post type (non-hierarchical) to change the post order to a new one.
 
25
 
26
  = Example of Usage =
27
  [youtube http://www.youtube.com/watch?v=VEbNKFSfhCc]
@@ -48,6 +52,9 @@ If for some reason the post order does not update on your front side, you either
48
 
49
  1. The ReOrder interface through which the sort can be created.
50
 
 
 
 
51
  == Frequently Asked Questions ==
52
 
53
  Feel free to contact us at electronice_delphi@yahoo.com
@@ -87,6 +94,14 @@ Consider upgrading to our advanced version of this plugin at a very resonable pr
87
 
88
  == Change Log ==
89
 
 
 
 
 
 
 
 
 
90
  = 1.8.9 =
91
  - Add Nonce for admin settings
92
  - Update queries to use prepare
4
  Tags: post order, posts order, sort, post sort, posts sort, post type order, custom order, admin posts order
5
  Requires at least: 2.8
6
  Tested up to: 4.5.2
7
+ Stable tag: 1.8.9.2
8
+ License: GPLv2 or later
9
 
10
+ Post Order and custom Post Type Objects (custom post types) using a Drag and Drop Sortable JavaScript AJAX interface or default WordPress dashboard.
11
 
12
  == Description ==
13
 
14
+ <strong>Over 1.900.000 DOWNLOADS and near PERFECT rating out of 150 REVIEWS</strong>. <br />
15
+ A powerful plugin, Order Posts and Post Types Objects using a Drag and Drop Sortable JavaScript capability.
16
+
17
+ The order can be customized within **default WordPress post type archive list page** or **a separate Re-Order interface** which display all objects.
18
  It allow to reorder the posts for any custom post types you defined, including the default Posts. Also you can display the posts within admin interface sorted per your new sort. Post Order has never been easier.
19
 
20
  = Usage =
25
  * A new setting page will be created within Settings > Post Types Order, you should check with that, and make a first options save.
26
  * Using the AutoSort option as ON you don't need to worry about any code changes, the plugin will do the post order update on fly.
27
  * Use the Re-Order interface which appear to every custom post type (non-hierarchical) to change the post order to a new one.
28
+ * If prefer sort apply through the code, include 'orderby' =>'menu_order' within custom query arguments, more details at http://www.nsp-code.com/sample-code-on-how-to-apply-the-sort-for-post-types-order-plugin/
29
 
30
  = Example of Usage =
31
  [youtube http://www.youtube.com/watch?v=VEbNKFSfhCc]
52
 
53
  1. The ReOrder interface through which the sort can be created.
54
 
55
+ 2. Sort can be managed within default WordPress post type interface.
56
+
57
+
58
  == Frequently Asked Questions ==
59
 
60
  Feel free to contact us at electronice_delphi@yahoo.com
94
 
95
  == Change Log ==
96
 
97
+ = 1.8.9.3 =
98
+ - Remove translations from the package
99
+ - Updated link for donate
100
+
101
+ = 1.8.9.2 =
102
+ - WPDB Prepare argument fix
103
+ - User preferance objects per page set to default if empty
104
+
105
  = 1.8.9 =
106
  - Add Nonce for admin settings
107
  - Update queries to use prepare
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file