Version Description
Download this release
Release Info
| Developer | hsameerc |
| Plugin | |
| Version | 2.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0 to 2.1
- readme.txt +4 -3
- screenshot-2.png +0 -0
- simple-custom-post-order.php +6 -2
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: hsameerc
|
| 3 |
Tags: custom post order, post order, js post order, page order, taxonomy order, posts order, category order, sort posts, sort pages, sort custom posts
|
| 4 |
Requires at least: 3.0.0
|
| 5 |
-
Tested up to: 3.
|
| 6 |
-
Stable tag: 3.
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
|
@@ -43,4 +43,5 @@ An answer to that question.
|
|
| 43 |
* Fixed Undefined Notice Error in wp version 3.7.1
|
| 44 |
* Taxonomy Activate Checkbox removed.
|
| 45 |
|
| 46 |
-
|
|
|
| 2 |
Contributors: hsameerc
|
| 3 |
Tags: custom post order, post order, js post order, page order, taxonomy order, posts order, category order, sort posts, sort pages, sort custom posts
|
| 4 |
Requires at least: 3.0.0
|
| 5 |
+
Tested up to: 3.8
|
| 6 |
+
Stable tag: 3.8
|
| 7 |
License: GPLv2 or later
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 9 |
|
| 43 |
* Fixed Undefined Notice Error in wp version 3.7.1
|
| 44 |
* Taxonomy Activate Checkbox removed.
|
| 45 |
|
| 46 |
+
= Version 2.1 (31-12-2013) =
|
| 47 |
+
* Prevent Breaking autocomplete
|
screenshot-2.png
DELETED
|
Binary file
|
simple-custom-post-order.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin Name: Simple Custom Post Order
|
| 5 |
Plugin URI: http://hsameer.com.np/simple-custom-post-order/
|
| 6 |
Description: Order Items (Posts, Pages, and Custom Post Types) using a Drag and Drop Sortable JavaScript.
|
| 7 |
-
Version: 2.
|
| 8 |
Author: Sameer Humagain
|
| 9 |
Author URI: http://hsameer.com.np/
|
| 10 |
*/
|
|
@@ -436,6 +436,10 @@ class Taxonomy_Order_Engine {
|
|
| 436 |
if ( empty( $objects ) )
|
| 437 |
return $objects;
|
| 438 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 439 |
// placeholder for ordered objects
|
| 440 |
$placeholder = array( );
|
| 441 |
|
|
@@ -470,4 +474,4 @@ class Taxonomy_Order_Engine {
|
|
| 470 |
|
| 471 |
}
|
| 472 |
|
| 473 |
-
new Taxonomy_Order_Engine;
|
| 4 |
Plugin Name: Simple Custom Post Order
|
| 5 |
Plugin URI: http://hsameer.com.np/simple-custom-post-order/
|
| 6 |
Description: Order Items (Posts, Pages, and Custom Post Types) using a Drag and Drop Sortable JavaScript.
|
| 7 |
+
Version: 2.1
|
| 8 |
Author: Sameer Humagain
|
| 9 |
Author URI: http://hsameer.com.np/
|
| 10 |
*/
|
| 436 |
if ( empty( $objects ) )
|
| 437 |
return $objects;
|
| 438 |
|
| 439 |
+
// do not apply ordering to list that contains just names
|
| 440 |
+
if ( !is_object( $objects[0] ) )
|
| 441 |
+
return $objects;
|
| 442 |
+
|
| 443 |
// placeholder for ordered objects
|
| 444 |
$placeholder = array( );
|
| 445 |
|
| 474 |
|
| 475 |
}
|
| 476 |
|
| 477 |
+
new Taxonomy_Order_Engine;
|
