Post Types Order - Version 1.9.5

Version Description

  • Fix: disable drag & drop within taxonomies interfaces; fix WooCommerce attributes sort issue
    • Reorder interface slight styles improvements
    • Compatibility tag update for WordPress 5.4.2
Download this release

Release Info

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

Code changes from version 1.9.4.3 to 1.9.5

Files changed (4) hide show
  1. css/cpt.css +3 -3
  2. include/class.cpto.php +4 -1
  3. post-types-order.php +1 -1
  4. readme.txt +7 -2
css/cpt.css CHANGED
@@ -1,8 +1,8 @@
1
  #order-post-type #sortable { list-style-type: none; margin: 10px 0 0; padding: 0; width: 100%; }
2
  #order-post-type #sortable ul { margin-left:20px; list-style: none; }
3
- #order-post-type #sortable li { padding: 7px 10px; margin: 4px 0px; border: 1px solid #DDDDDD; cursor: move; -moz-border-radius:6px; background-color: #f9f9f9;}
4
- #order-post-type #sortable li:nth-child(2n+1) { background-color: #fff !important;}
5
- #order-post-type #sortable li span { display: block; color:#555; font-size:13px;}
6
  #order-post-type #sortable li.placeholder{border: dashed 2px #ccc;height:18px; background-color: #FFF;}
7
 
8
  #icon-settings {background-image:url("../images/admin-icon-settings.gif");background-repeat:no-repeat;}
1
  #order-post-type #sortable { list-style-type: none; margin: 10px 0 0; padding: 0; width: 100%; }
2
  #order-post-type #sortable ul { margin-left:20px; list-style: none; }
3
+ #order-post-type #sortable li { padding: 10px; margin: 3px 0px; border-bottom: 1px solid #f4f4f4;border-left: 4px solid #ccd0d4; cursor: move; background-color: #FFF}
4
+ #order-post-type #sortable li:nth-child(2n+1) { background-color: #f9f9f9 !important;}
5
+ #order-post-type #sortable li span { display: block; font-size:14px;}
6
  #order-post-type #sortable li.placeholder{border: dashed 2px #ccc;height:18px; background-color: #FFF;}
7
 
8
  #icon-settings {background-image:url("../images/admin-icon-settings.gif");background-repeat:no-repeat;}
include/class.cpto.php CHANGED
@@ -260,7 +260,10 @@
260
  //check if the right interface
261
  if( !isset( $screen->post_type ) || empty($screen->post_type))
262
  return;
263
-
 
 
 
264
  //check if post type is sortable
265
  if(isset($options['show_reorder_interfaces'][$screen->post_type]) && $options['show_reorder_interfaces'][ $screen->post_type ] != 'show')
266
  return;
260
  //check if the right interface
261
  if( !isset( $screen->post_type ) || empty($screen->post_type))
262
  return;
263
+
264
+ if( isset( $screen->taxonomy ) && !empty($screen->taxonomy) )
265
+ return;
266
+
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;
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.4.3
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
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.4
7
- Stable tag: 1.9.4.3
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.4.3 =
98
  - Option text translation update
99
  - Changed the posts class to to wp-list-table when applying sortable for better compatibility
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.4.2
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
 
95
  == Change Log ==
96
 
97
+ = 1.9.5 =
98
+ - Fix: disable drag & drop within taxonomies interfaces; fix WooCommerce attributes sort issue
99
+ - Reorder interface slight styles improvements
100
+ - Compatibility tag update for WordPress 5.4.2
101
+
102
  = 1.9.4.3 =
103
  - Option text translation update
104
  - Changed the posts class to to wp-list-table when applying sortable for better compatibility