Version Description
- Fix PHP implode() notice
- Ensure the drag & drop interface show for correct post types, non hierarchically to ensure correct functionality
- WordPress 5.6 compatibility tag
Download this release
Release Info
Developer | nsp-code |
Plugin | Post Types Order |
Version | 1.9.5.4 |
Comparing to | |
See all releases |
Code changes from version 1.9.5.2 to 1.9.5.4
- include/class.cpto.php +4 -0
- include/class.functions.php +1 -1
- post-types-order.php +1 -1
- readme.txt +7 -2
include/class.cpto.php
CHANGED
@@ -267,6 +267,10 @@
|
|
267 |
//check if post type is sortable
|
268 |
if(isset($options['show_reorder_interfaces'][$screen->post_type]) && $options['show_reorder_interfaces'][ $screen->post_type ] != 'show')
|
269 |
return;
|
|
|
|
|
|
|
|
|
270 |
|
271 |
//if is taxonomy term filter return
|
272 |
if(is_category() || is_tax())
|
267 |
//check if post type is sortable
|
268 |
if(isset($options['show_reorder_interfaces'][$screen->post_type]) && $options['show_reorder_interfaces'][ $screen->post_type ] != 'show')
|
269 |
return;
|
270 |
+
|
271 |
+
//not for hierarhical
|
272 |
+
if ( is_post_type_hierarchical( $screen->post_type ) )
|
273 |
+
return;
|
274 |
|
275 |
//if is taxonomy term filter return
|
276 |
if(is_category() || is_tax())
|
include/class.functions.php
CHANGED
@@ -233,7 +233,7 @@
|
|
233 |
}
|
234 |
|
235 |
if ( ! empty( $excluded_terms ) ) {
|
236 |
-
$_where .= " AND p.ID NOT IN ( SELECT tr.object_id FROM $wpdb->term_relationships tr LEFT JOIN $wpdb->term_taxonomy tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id) WHERE tt.term_id IN (" . implode(
|
237 |
}
|
238 |
}
|
239 |
|
233 |
}
|
234 |
|
235 |
if ( ! empty( $excluded_terms ) ) {
|
236 |
+
$_where .= " AND p.ID NOT IN ( SELECT tr.object_id FROM $wpdb->term_relationships tr LEFT JOIN $wpdb->term_taxonomy tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id) WHERE tt.term_id IN (" . implode( ',', $excluded_terms ) . ') )';
|
237 |
}
|
238 |
}
|
239 |
|
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.9.5.
|
9 |
Text Domain: post-types-order
|
10 |
Domain Path: /languages/
|
11 |
*/
|
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.9.5.4
|
9 |
Text Domain: post-types-order
|
10 |
Domain Path: /languages/
|
11 |
*/
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: nsp-code, tdgu
|
|
3 |
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: 5.
|
7 |
-
Stable tag: 1.9.5.
|
8 |
|
9 |
Post Order and custom Post Type Objects (custom post types) using a Drag and Drop Sortable JavaScript AJAX interface or default WordPress dashboard.
|
10 |
|
@@ -94,6 +94,11 @@ Consider upgrading to our advanced version of this plugin at a very resonable pr
|
|
94 |
|
95 |
== Change Log ==
|
96 |
|
|
|
|
|
|
|
|
|
|
|
97 |
= 1.9.5.2 =
|
98 |
- Clean post cache on order update to allow menu_order to change on cached data
|
99 |
- WordPress 5.5 compatibility tag
|
3 |
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: 5.6
|
7 |
+
Stable tag: 1.9.5.4
|
8 |
|
9 |
Post Order and custom Post Type Objects (custom post types) using a Drag and Drop Sortable JavaScript AJAX interface or default WordPress dashboard.
|
10 |
|
94 |
|
95 |
== Change Log ==
|
96 |
|
97 |
+
= 1.9.5.4 =
|
98 |
+
- Fix PHP implode() notice
|
99 |
+
- Ensure the drag & drop interface show for correct post types, non hierarchically to ensure correct functionality
|
100 |
+
- WordPress 5.6 compatibility tag
|
101 |
+
|
102 |
= 1.9.5.2 =
|
103 |
- Clean post cache on order update to allow menu_order to change on cached data
|
104 |
- WordPress 5.5 compatibility tag
|