Simple Page Ordering - Version 2.2.4

Version Description

  • Fixed redundant URL encoding when sorting in admin page list
Download this release

Release Info

Developer jakemgold
Plugin Icon 128x128 Simple Page Ordering
Version 2.2.4
Comparing to
See all releases

Code changes from version 2.2.3 to 2.2.4

Files changed (2) hide show
  1. readme.txt +5 -2
  2. simple-page-ordering.php +2 -2
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: jakemgold, 10up, thinkoomph
3
Donate link: http://10up.com/plugins/simple-page-ordering-wordpress/
4
Tags: order, re-order, ordering, pages, page, manage, menu_order, hierarchical, ajax, drag-and-drop, admin
5
Requires at least: 3.8
6
- Tested up to: 4.0
7
- Stable tag: 2.2.3
8
9
Order your pages and other hierarchical post types with simple drag and drop right from the standard page list.
10
@@ -77,6 +77,9 @@ This feature is already built into WordPress natively, but a bit tucked away. If
77
78
== Changelog ==
79
80
= 2.2.3 =
81
* Fixed ordering in WordPress 4.0 following core changes to ORDER BY in WP_Query
82
3
Donate link: http://10up.com/plugins/simple-page-ordering-wordpress/
4
Tags: order, re-order, ordering, pages, page, manage, menu_order, hierarchical, ajax, drag-and-drop, admin
5
Requires at least: 3.8
6
+ Tested up to: 4.6.1
7
+ Stable tag: 2.2.4
8
9
Order your pages and other hierarchical post types with simple drag and drop right from the standard page list.
10
77
78
== Changelog ==
79
80
+ = 2.2.4 =
81
+ * Fixed redundant URL encoding when sorting in admin page list
82
+
83
= 2.2.3 =
84
* Fixed ordering in WordPress 4.0 following core changes to ORDER BY in WP_Query
85
simple-page-ordering.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Simple Page Ordering
4
Plugin URI: http://10up.com/plugins/simple-page-ordering-wordpress/
5
Description: Order your pages and hierarchical post types using drag and drop on the built in page list. For further instructions, open the "Help" tab on the Pages screen.
6
- Version: 2.2.3
7
Author: Jake Goldman, 10up
8
Author URI: http://10up.com
9
License: GPLv2 or later
@@ -283,7 +283,7 @@ class Simple_Page_Ordering {
283
$class = ( get_query_var('orderby') == 'menu_order title' ) ? 'current' : '';
284
$query_string = esc_url( remove_query_arg( array( 'orderby', 'order' ) ) );
285
if ( ! is_post_type_hierarchical( get_post_type() ) ) {
286
- $query_string = add_query_arg( 'orderby', urlencode( 'menu_order title' ), $query_string );
287
$query_string = add_query_arg( 'order', 'asc', $query_string );
288
}
289
$views['byorder'] = sprintf('<a href="%s" class="%s">%s</a>', $query_string, $class, __("Sort by Order", 'simple-page-ordering'));
3
Plugin Name: Simple Page Ordering
4
Plugin URI: http://10up.com/plugins/simple-page-ordering-wordpress/
5
Description: Order your pages and hierarchical post types using drag and drop on the built in page list. For further instructions, open the "Help" tab on the Pages screen.
6
+ Version: 2.2.4
7
Author: Jake Goldman, 10up
8
Author URI: http://10up.com
9
License: GPLv2 or later
283
$class = ( get_query_var('orderby') == 'menu_order title' ) ? 'current' : '';
284
$query_string = esc_url( remove_query_arg( array( 'orderby', 'order' ) ) );
285
if ( ! is_post_type_hierarchical( get_post_type() ) ) {
286
+ $query_string = add_query_arg( 'orderby', 'menu_order title', $query_string );
287
$query_string = add_query_arg( 'order', 'asc', $query_string );
288
}
289
$views['byorder'] = sprintf('<a href="%s" class="%s">%s</a>', $query_string, $class, __("Sort by Order", 'simple-page-ordering'));