Intuitive Custom Post Order - Version 3.0.5

Version Description

  • Fixed bug
    • Initialize of menu_order of pages.( orderby=menu_order, post_title, order=asc )
Download this release

Release Info

Developer hijiri
Plugin Icon 128x128 Intuitive Custom Post Order
Version 3.0.5
Comparing to
See all releases

Code changes from version 3.0.4 to 3.0.5

Files changed (2) hide show
  1. intuitive-custom-post-order.php +6 -5
  2. readme.txt +5 -1
intuitive-custom-post-order.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Intuitive Custom Post Order
4
  Plugin URI: http://hijiriworld.com/web/plugins/intuitive-custom-post-order/
5
  Description: Intuitively, Order Items (Posts, Pages, and Custom Post Types and Custom Taxonomies) using a Drag and Drop Sortable JavaScript.
6
- Version: 3.0.4
7
  Author: hijiri
8
  Author URI: http://hijiriworld.com/web/
9
  License: GPLv2 or later
@@ -268,10 +268,11 @@ class Hicpo
268
  /**
269
  * はじめて有効化されたオブジェクトは、ディフォルトの order に従って menu_order セットする
270
  *
271
- * post_type: orderby=post_date, order=desc
272
- * taxonomy: orderby=name, order=asc
 
273
  *
274
- * 判定は: アイテム数が 0 以上で order 値がひとつもセットされていないオブジェクト
275
  */
276
 
277
  function update_options()
@@ -305,7 +306,7 @@ class Hicpo
305
  SELECT ID
306
  FROM $wpdb->posts
307
  WHERE post_type = '".$object."' AND post_status IN ('publish', 'pending', 'draft', 'private', 'future')
308
- ORDER BY post_title ASC
309
  " );
310
  } else {
311
  $results = $wpdb->get_results( "
3
  Plugin Name: Intuitive Custom Post Order
4
  Plugin URI: http://hijiriworld.com/web/plugins/intuitive-custom-post-order/
5
  Description: Intuitively, Order Items (Posts, Pages, and Custom Post Types and Custom Taxonomies) using a Drag and Drop Sortable JavaScript.
6
+ Version: 3.0.5
7
  Author: hijiri
8
  Author URI: http://hijiriworld.com/web/
9
  License: GPLv2 or later
268
  /**
269
  * はじめて有効化されたオブジェクトは、ディフォルトの order に従って menu_order セットする
270
  *
271
+ * post_type: orderby=post_date, order=DESC
272
+ * page: orderby=menu_order, post_title, order=ASC
273
+ * taxonomy: orderby=name, order=ASC
274
  *
275
+ * 判定は: アイテム数が 0 以上で menu_order の最大値とアイテム数が同じではないオブジェクト
276
  */
277
 
278
  function update_options()
306
  SELECT ID
307
  FROM $wpdb->posts
308
  WHERE post_type = '".$object."' AND post_status IN ('publish', 'pending', 'draft', 'private', 'future')
309
+ ORDER BY menu_order, post_title ASC
310
  " );
311
  } else {
312
  $results = $wpdb->get_results( "
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: hijiri
3
  Tags: post order, posts order, order post, order posts, custom post type order, custom taxonomy order
4
  Requires at least: 3.5.0
5
  Tested up to: 4.2.2
6
- Stable tag: 3.0.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -78,6 +78,10 @@ add_action( 'pre_get_posts', 'my_filter' );
78
 
79
  == Changelog ==
80
 
 
 
 
 
81
 
82
  = 3.0.4 =
83
 
3
  Tags: post order, posts order, order post, order posts, custom post type order, custom taxonomy order
4
  Requires at least: 3.5.0
5
  Tested up to: 4.2.2
6
+ Stable tag: 3.0.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
78
 
79
  == Changelog ==
80
 
81
+ = 3.0.5 =
82
+
83
+ * Fixed bug
84
+ - Initialize of menu_order of pages.( orderby=menu_order, post_title, order=asc )
85
 
86
  = 3.0.4 =
87