Changeset 730389
- Timestamp:
- 06/23/2013 03:06:00 PM (13 years ago)
- Location:
- post-sorter
- Files:
-
- 1 added
- 3 edited
-
tags/1.3.1 (added)
-
trunk/page/general.php (modified) (2 diffs)
-
trunk/post_sorter.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-sorter/trunk/page/general.php
r730333 r730389 96 96 <th scope="row"><label for="post_sorter_join_clause"><?php _e( 'JOIN Clause', 'post_sorter' ) ?></label>:</th> 97 97 <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> 99 99 <br /> 100 100 <span class="hint"><?php _e( 'Your custom join clause that would be applied on the post list SQL query.', 'post_sorter' ) ?></span> … … 104 104 <th scope="row"><label for="post_sorter_order_by_clause"><?php _e( 'ORDER BY Clause', 'post_sorter' ) ?></label>:</th> 105 105 <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> 107 107 <br /> 108 108 <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 4 4 Plugin URI: http://intellisys.org/ 5 5 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 7 7 Author: Lyubomir Gardev 8 8 Author URI: http://rolice.intellisys.info/ … … 474 474 */ 475 475 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' ) ) ) ) 477 477 return $sql; 478 478 … … 486 486 */ 487 487 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' ) ) ) ) 489 489 return $sql; 490 490 -
post-sorter/trunk/readme.txt
r730357 r730389 5 5 Requires at least: 3.2 6 6 Tested up to: 3.5 7 Stable tag: 1.3 7 Stable tag: 1.3.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 67 67 == Changelog == 68 68 69 = 1.3.1 = 70 * Escaping quotes with backslashes in SQL clauses fixed. 71 69 72 = 1.3 = 70 73 * 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.