Plugin Directory

Changeset 730389


Ignore:
Timestamp:
06/23/2013 03:06:00 PM (13 years ago)
Author:
rolice
Message:

1.3.1

  • Fix with escaping strings in custom SQL clauses.
Location:
post-sorter
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • post-sorter/trunk/page/general.php

    r730333 r730389  
    9696                    <th scope="row"><label for="post_sorter_join_clause"><?php _e( 'JOIN Clause', 'post_sorter' ) ?></label>:</th>
    9797                    <td valign="top">
    98                         <textarea name="post_sorter_join_clause" id="post_sorter_join_clause" rows="8" cols="80"><?php echo get_option('post_sorter_join_clause') ?></textarea>
     98                        <textarea name="post_sorter_join_clause" id="post_sorter_join_clause" rows="8" cols="80"><?php echo str_replace( '\\', '', get_option( 'post_sorter_join_clause' ) ) ?></textarea>
    9999                        <br />
    100100                        <span class="hint"><?php _e( 'Your custom join clause that would be applied on the post list SQL query.', 'post_sorter' ) ?></span>
     
    104104                    <th scope="row"><label for="post_sorter_order_by_clause"><?php _e( 'ORDER BY Clause', 'post_sorter' ) ?></label>:</th>
    105105                    <td valign="top">
    106                         <textarea name="post_sorter_order_by_clause" id="post_sorter_order_by_clause" rows="8" cols="80"><?php echo get_option('post_sorter_order_by_clause') ?></textarea>
     106                        <textarea name="post_sorter_order_by_clause" id="post_sorter_order_by_clause" rows="8" cols="80"><?php echo str_replace( '\\', '', get_option( 'post_sorter_order_by_clause' ) ) ?></textarea>
    107107                        <br />
    108108                        <span class="hint"><?php _e( 'Your custom order by clause that would be applied on the post list SQL query.', 'post_sorter' ) ?></span>
  • post-sorter/trunk/post_sorter.php

    r730333 r730389  
    44  Plugin URI: http://intellisys.org/
    55  Description: Plugin for easy sorting of posts and pages by numeric value, both ascending and descending.
    6   Version: 1.3
     6  Version: 1.3.1
    77  Author: Lyubomir Gardev
    88  Author URI: http://rolice.intellisys.info/
     
    474474     */
    475475    public function internal_join( $sql ) {
    476         if( !( $join = get_option( 'post_sorter_join_clause' ) ) )
     476        if( !( $join = str_replace( '\\', '', get_option( 'post_sorter_join_clause' ) ) ) )
    477477            return $sql;
    478478       
     
    486486     */
    487487    public function internal_order( $sql ) {
    488         if( !( $orderby = get_option( 'post_sorter_order_by_clause' ) ) )
     488        if( !( $orderby = str_replace( '\\', '', get_option( 'post_sorter_order_by_clause' ) ) ) )
    489489            return $sql;
    490490       
  • post-sorter/trunk/readme.txt

    r730357 r730389  
    55Requires at least: 3.2
    66Tested up to: 3.5
    7 Stable tag: 1.3
     7Stable tag: 1.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6767== Changelog ==
    6868
     69= 1.3.1 =
     70* Escaping quotes with backslashes in SQL clauses fixed.
     71
    6972= 1.3 =
    7073* Fixed a bug where custom post types disappear from the list. This problem was due to INNER join, but not OUTER.
Note: See TracChangeset for help on using the changeset viewer.