Plugin Directory

Changeset 1970340


Ignore:
Timestamp:
11/07/2018 12:38:21 PM (7 years ago)
Author:
colorlibplugins
Message:

Update to 2.3.5

Location:
simple-custom-post-order
Files:
11 added
2 edited

Legend:

Unmodified
Added
Removed
  • simple-custom-post-order/trunk/readme.md

    r1965327 r1970340  
    44Requires at least: 3.5.1
    55Tested up to: 5.0.0
    6 Stable tag: 2.3.4
     6Stable tag: 2.3.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1515Excluding custom query which uses order or orderby parameters, in get_posts or query_posts and so on.
    1616
    17 This plugins is now supported and maintained by <a href=“https://colorlib.com/wp/“ target=“_blank”>Colorlib</a>.
     17This plugins is now supported and maintained by <a href="https://colorlib.com/wp/" target="_blank">Colorlib</a>.
    1818
    1919== Installation ==
     
    3030== Screenshots ==
    3131
    32 1. screenshot-1
    33 2. screenshot-2
     321. Order Custom Posts
     332. Order Posts
     343. Settings
    3435
    3536== Changelog ==
    36 = Version 1.0 (20-07-2013) =
    37 *  Initial release.
    3837
    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
    4340
    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"
    4743
    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
    5049
    5150= Version 2.2 (02-07-2014) =
     
    5554* Removed Taxonomy Sort( Will add in next Version :) )
    5655
    57 = Version 2.3 (24-03-2014) =
    58 * Fixed major bug on taxonomy and post order
     56= Version 2.1 (31-12-2013) =
     57* Prevent Breaking autocomplete
    5958
    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.
    6262
    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
    6567
    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  
    55  Plugin URI: https://wordpress.org/plugins-wp/simple-custom-post-order/
    66  Description: Order Items (Posts, Pages, and Custom Post Types) using a Drag and Drop Sortable JavaScript.
    7   Version: 2.3.4
     7  Version: 2.3.5
    88  Author: Colorlib
    99  Author URI: https://colorlib.com/wp/
     
    300300
    301301        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        }
    305304        return $where;
    306305    }
     
    327326
    328327        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        }
    332330        return $where;
    333331    }
Note: See TracChangeset for help on using the changeset viewer.