Post Types Order - Version 1.9.3.9

Version Description

  • Ignore sorting when doing Search and there's a search key-phrase specified.
    • Ignore sorting when doing Search within admin dashboard
    • Removed Google Social as it produced some JavaScript errors
    • WordPress 4.9.7 tag update
Download this release

Release Info

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

Code changes from version 1.9.3.6 to 1.9.3.9

css/cpt.css CHANGED
@@ -14,13 +14,11 @@
14
  -moz-box-shadow: 1px 1px 7px rgba(50, 50, 50, 0.17);
15
  box-shadow: 1px 1px 7px rgba(50, 50, 50, 0.17);}
16
  #cpto #cpt_info_box a {text-decoration: none}
17
- #cpto #p_socialize {padding: 20px 0px 20px 0}
18
  #cpto #cpt_info_box #donate_form { padding: 20px 0 17px; text-align: center; width: 100%;}
19
  .menu_pto {margin-right: 4px; display: inline; vertical-align: middle; margin-top: -1px;}
20
 
21
- #cpto #p_right {float: right; width: 230px; background-color:#f5f5f5; border-left: 1px dashed #dedede; border-right: 1px dashed #dedede; margin-left: 10px; text-align: center;}
22
- #cpto .p_s_item {float: none; padding: 0px 5px; margin: 0px; display: inline-block; vertical-align: middle;}
23
- #cpto .p_s_item > iframe, #cpto .p_s_item > div {display: block}
24
- #cpto .p_s_item.s_gp {padding-top: 0px; margin-left: 0px}
25
 
26
  .clear {clear: both}
14
  -moz-box-shadow: 1px 1px 7px rgba(50, 50, 50, 0.17);
15
  box-shadow: 1px 1px 7px rgba(50, 50, 50, 0.17);}
16
  #cpto #cpt_info_box a {text-decoration: none}
 
17
  #cpto #cpt_info_box #donate_form { padding: 20px 0 17px; text-align: center; width: 100%;}
18
  .menu_pto {margin-right: 4px; display: inline; vertical-align: middle; margin-top: -1px;}
19
 
20
+ #cpto #p_right {float: right; background-color:#f5f5f5; border: 1px dashed #6aadcc; padding: 0px 10px; margin-top: 10px}
21
+ #cpto .p_s_item {float: right; padding: 0px 5px; margin-top: 10px; margin-bottom: 5px; }
22
+
 
23
 
24
  .clear {clear: both}
include/class.cpto.php CHANGED
@@ -150,6 +150,10 @@
150
  if($ignore === TRUE)
151
  return $orderBy;
152
 
 
 
 
 
153
  if (is_admin())
154
  {
155
 
@@ -170,11 +174,7 @@
170
  }
171
  }
172
  else
173
- {
174
- //ignore search
175
- if($query->is_search())
176
- return($orderBy);
177
-
178
  $order = '';
179
  if ($options['use_query_ASC_DESC'] == "1")
180
  $order = isset($query->query_vars['order']) ? " " . $query->query_vars['order'] : '';
150
  if($ignore === TRUE)
151
  return $orderBy;
152
 
153
+ //ignore search
154
+ if( $query->is_search() && isset( $query->query['s'] ) && ! empty ( $query->query['s'] ) )
155
+ return( $orderBy );
156
+
157
  if (is_admin())
158
  {
159
 
174
  }
175
  }
176
  else
177
+ {
 
 
 
 
178
  $order = '';
179
  if ($options['use_query_ASC_DESC'] == "1")
180
  $order = isset($query->query_vars['order']) ? " " . $query->query_vars['order'] : '';
include/class.functions.php CHANGED
@@ -87,15 +87,7 @@
87
  <div class="p_s_item s_t">
88
  <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.nsp-code.com" data-text="Define custom order for your post types through an easy to use javascript AJAX drag and drop interface. No theme code updates are necessarily, this plugin will take care of query update." data-count="none">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
89
  </div>
90
-
91
- <div class="p_s_item s_gp">
92
- <!-- Place this tag in your head or just before your close body tag -->
93
- <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
94
-
95
- <!-- Place this tag where you want the +1 button to render -->
96
- <div class="g-plusone" data-size="small" data-annotation="none" data-href="http://nsp-code.com/"></div>
97
- </div>
98
-
99
  <div class="clear"></div>
100
  </div>
101
 
87
  <div class="p_s_item s_t">
88
  <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.nsp-code.com" data-text="Define custom order for your post types through an easy to use javascript AJAX drag and drop interface. No theme code updates are necessarily, this plugin will take care of query update." data-count="none">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
89
  </div>
90
+
 
 
 
 
 
 
 
 
91
  <div class="clear"></div>
92
  </div>
93
 
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.3.6
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.3.9
9
  Text Domain: post-types-order
10
  Domain Path: /languages/
11
  */
readme.txt CHANGED
@@ -3,26 +3,26 @@ 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: 4.9.1
7
- Stable tag: 1.9.3.6
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
 
11
  == Description ==
12
 
13
- <strong>Over 2.5 MILLIONS DOWNLOADS and near PERFECT rating out of 200 REVIEWS</strong>. <br />
14
  A powerful plugin, Order Posts and Post Types Objects using a Drag and Drop Sortable JavaScript capability.
15
 
16
  The order can be customized within **default WordPress post type archive list page** or **a separate Re-Order interface** which display all objects.
17
- 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.
18
 
19
  = Usage =
20
- This was built considering for everyone to be able to use no matter the WordPress experience, so it's very easy:
21
 
22
  * Install the plugin through the Install Plugins interface or by uploading the `post-types-order` folder to your `/wp-content/plugins/` directory.
23
  * Activate the Post Order plugin.
24
  * A new setting page will be created within Settings > Post Types Order, you should check with that, and make a first options save.
25
- * 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.
26
  * Use the Re-Order interface which appear to every custom post type (non-hierarchical) to change the post order to a new one.
27
  * 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/
28
 
@@ -94,6 +94,12 @@ Consider upgrading to our advanced version of this plugin at a very resonable pr
94
 
95
  == Change Log ==
96
 
 
 
 
 
 
 
97
  = 1.9.3.6 =
98
  - Clear LiteSpeed Cache on order update to reflect on front side
99
  - WordPress 4.9.1 tag update
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: 4.9.7
7
+ Stable tag: 1.9.3.9
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
 
11
  == Description ==
12
 
13
+ <strong>Over 3.2 MILLIONS DOWNLOADS and near PERFECT rating out of 200 REVIEWS</strong>. <br />
14
  A powerful plugin, Order Posts and Post Types Objects using a Drag and Drop Sortable JavaScript capability.
15
 
16
  The order can be customized within **default WordPress post type archive list page** or **a separate Re-Order interface** which display all objects.
17
+ It allows 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.
18
 
19
  = Usage =
20
+ This was built considering everyone to be able to use the sorting, no matter the WordPress experience:
21
 
22
  * Install the plugin through the Install Plugins interface or by uploading the `post-types-order` folder to your `/wp-content/plugins/` directory.
23
  * Activate the Post Order plugin.
24
  * A new setting page will be created within Settings > Post Types Order, you should check with that, and make a first options save.
25
+ * Using the <strong>AutoSort option as ON</strong> you don't need to worry about any code changes, the <strong>plugin will apply the customized post order</strong> on fly.
26
  * Use the Re-Order interface which appear to every custom post type (non-hierarchical) to change the post order to a new one.
27
  * 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/
28
 
94
 
95
  == Change Log ==
96
 
97
+ = 1.9.3.9 =
98
+ - Ignore sorting when doing Search and there's a search key-phrase specified.
99
+ - Ignore sorting when doing Search within admin dashboard
100
+ - Removed Google Social as it produced some JavaScript errors
101
+ - WordPress 4.9.7 tag update
102
+
103
  = 1.9.3.6 =
104
  - Clear LiteSpeed Cache on order update to reflect on front side
105
  - WordPress 4.9.1 tag update