Changeset 1970340
- Timestamp:
- 11/07/2018 12:38:21 PM (7 years ago)
- Location:
- simple-custom-post-order
- Files:
-
- 11 added
- 2 edited
-
tags/2.3.5 (added)
-
tags/2.3.5/assets (added)
-
tags/2.3.5/assets/scporder.css (added)
-
tags/2.3.5/assets/scporder.js (added)
-
tags/2.3.5/assets/taxonomy_order.js (added)
-
tags/2.3.5/readme.md (added)
-
tags/2.3.5/screenshot-1.png (added)
-
tags/2.3.5/screenshot-2.png (added)
-
tags/2.3.5/screenshot-3.png (added)
-
tags/2.3.5/settings.php (added)
-
tags/2.3.5/simple-custom-post-order.php (added)
-
trunk/readme.md (modified) (4 diffs)
-
trunk/simple-custom-post-order.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-custom-post-order/trunk/readme.md
r1965327 r1970340 4 4 Requires at least: 3.5.1 5 5 Tested up to: 5.0.0 6 Stable tag: 2.3. 46 Stable tag: 2.3.5 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 Excluding custom query which uses order or orderby parameters, in get_posts or query_posts and so on. 16 16 17 This plugins is now supported and maintained by <a href= “https://colorlib.com/wp/“ target=“_blank”>Colorlib</a>.17 This plugins is now supported and maintained by <a href="https://colorlib.com/wp/" target="_blank">Colorlib</a>. 18 18 19 19 == Installation == … … 30 30 == Screenshots == 31 31 32 1. screenshot-1 33 2. screenshot-2 32 1. Order Custom Posts 33 2. Order Posts 34 3. Settings 34 35 35 36 == Changelog == 36 = Version 1.0 (20-07-2013) =37 * Initial release.38 37 39 = Version 1.5 (25-07-2013) = 40 * Fix : fix errors 41 * Added Taxonomy Sort 42 * Added Taxonomy Sort option In setting Page 38 = Version 2.3.5 = 39 * Fixed https://github.com/ColorlibHQ/simple-custom-post-order/issues/12 43 40 44 = Version 2.0 (22-11-2013) = 45 * Fixed Undefined Notice Error in wp version 3.7.1 46 * Taxonomy Activate Checkbox removed. 41 = Version 2.3.4 = 42 * Removed deprecated function "screen_icon" 47 43 48 = Version 2.1 (31-12-2013) = 49 * Prevent Breaking autocomplete 44 = Version 2.3.2 (17-03-2017) = 45 * Minor documentation and readme tweaks 46 47 = Version 2.3 (24-03-2014) = 48 * Fixed major bug on taxonomy and post order 50 49 51 50 = Version 2.2 (02-07-2014) = … … 55 54 * Removed Taxonomy Sort( Will add in next Version :) ) 56 55 57 = Version 2. 3 (24-03-2014) =58 * Fixed major bug on taxonomy and post order56 = Version 2.1 (31-12-2013) = 57 * Prevent Breaking autocomplete 59 58 60 = Version 2.3.2 (17-03-2017) = 61 * Minor documentation and readme tweaks 59 = Version 2.0 (22-11-2013) = 60 * Fixed Undefined Notice Error in wp version 3.7.1 61 * Taxonomy Activate Checkbox removed. 62 62 63 = Version 2.3.3 (22-10-2018) = 64 * Minor tweaks & fixes 63 = Version 1.5 (25-07-2013) = 64 * Fix : fix errors 65 * Added Taxonomy Sort 66 * Added Taxonomy Sort option In setting Page 65 67 66 = Version 2.3.4=67 * Removed deprecated function "screen_icon"68 = Version 1.0 (20-07-2013) = 69 * Initial release. -
simple-custom-post-order/trunk/simple-custom-post-order.php
r1965327 r1970340 5 5 Plugin URI: https://wordpress.org/plugins-wp/simple-custom-post-order/ 6 6 Description: Order Items (Posts, Pages, and Custom Post Types) using a Drag and Drop Sortable JavaScript. 7 Version: 2.3. 47 Version: 2.3.5 8 8 Author: Colorlib 9 9 Author URI: https://colorlib.com/wp/ … … 300 300 301 301 if (isset($post->post_type) && in_array($post->post_type, $objects)) { 302 $current_menu_order = $post->menu_order; 303 $where = "WHERE p.menu_order > '" . $current_menu_order . "' AND p.post_type = '" . $post->post_type . "' AND p.post_status = 'publish'"; 304 } 302 $where = preg_replace("/p.post_date < \'[0-9\-\s\:]+\'/i", "p.menu_order > '" . $post->menu_order . "'", $where); 303 } 305 304 return $where; 306 305 } … … 327 326 328 327 if (isset($post->post_type) && in_array($post->post_type, $objects)) { 329 $current_menu_order = $post->menu_order; 330 $where = "WHERE p.menu_order < '" . $current_menu_order . "' AND p.post_type = '" . $post->post_type . "' AND p.post_status = 'publish'"; 331 } 328 $where = preg_replace("/p.post_date > \'[0-9\-\s\:]+\'/i", "p.menu_order < '" . $post->menu_order . "'", $where); 329 } 332 330 return $where; 333 331 }
Note: See TracChangeset
for help on using the changeset viewer.