diff --git a/README.txt b/README.txt index 29a41ee..4a30eb9 100755 --- a/README.txt +++ b/README.txt @@ -3,7 +3,7 @@ Contributors: aurovrata, aurelien, pondermatic Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=36PNU5KYMP738 Tags: order, reorder, re-order, order by category,order custom post type, order by categories, order category, order categories, order by taxonomy, order by taxonomies, manual order, order posts Requires at least: 4.4 -Tested up to: 5.7.0 +Tested up to: 5.7.2 Requires PHP: 5.6 Stable tag: trunk License: GPLv2 @@ -63,7 +63,7 @@ Keep in mind that you will now see `Pages` as a post type to re-order, selecting = 3.I want limit/enable roles that can re-order posts = -Since v1.3.0 a new filter has been added that allows you to do that. Make sure you return a [valid capability](https://codex.wordpress.org/Roles_and_Capabilities#Capabilities), +Since v1.3.0 a new filter has been added that allows you to do that. Make sure you return a [valid capability](https://wordpress.org/support/article/roles-and-capabilities/#roles), `add_filter('reorder_post_within_categories_capability', 'enable_editors', 10,2); function enable_editors($capability, $post_type){ @@ -333,8 +333,10 @@ In your dashboard, navigate to the Settings->Reorder Posts page, scroll to the b @pondermatic for fixing the min-range bug. == Changelog == += 2.9.4 = +* fix admin reorder page load for non-admins. = 2.9.3 = -* fix bug stoping custom post types being unranked from removed terms. +* fix bug stopping custom post types being unranked from removed terms. = 2.9.2 = * fix count warnings. = 2.9.1 = diff --git a/admin/class-reorder-post-within-categories-admin.php b/admin/class-reorder-post-within-categories-admin.php index 499e40c..c1eb7fe 100755 --- a/admin/class-reorder-post-within-categories-admin.php +++ b/admin/class-reorder-post-within-categories-admin.php @@ -773,9 +773,6 @@ public function add_order_pages(){ case 'attachment'==$post_type: $the_page = add_submenu_page('upload.php', 'Re-order', 'Reorder', $capability, 're-orderPost-'.$post_type, array(&$this,'print_order_page')); break; - case 'post'==$post_type: - $the_page = add_submenu_page('edit.php', 'Re-order', 'Reorder', $capability, 're-orderPost-'.$post_type, array(&$this,'print_order_page')); - break; case 'lp_course'==$post_type && is_plugin_active('learnpress/learnpress.php'): /** @since 2.5.6 learnpress fix.*/ $the_page = add_submenu_page('learn_press', 'Re-order', 'Reorder', 'edit_lp_courses', 're-orderPost-'.$post_type, array(&$this,'print_order_page')); break; diff --git a/reorder-post-within-categories.php b/reorder-post-within-categories.php index 035c7a0..1c4eb84 100755 --- a/reorder-post-within-categories.php +++ b/reorder-post-within-categories.php @@ -16,7 +16,7 @@ * Plugin Name: ReOrder Posts within Categories * Plugin URI: https://github.com/aurovrata/ReOrder-posts-within-categories * Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area. - * Version: 2.9.3 + * Version: 2.9.4 * Author: Aurorata V. * Author URI: https://profiles.wordpress.org/aurovrata/ * License: GPL-2.0+ @@ -33,7 +33,7 @@ /** * Current plugin version. */ -define( 'REORDER_POST_WITHIN_CATEGORIES_VERSION', '2.9.3' ); +define( 'REORDER_POST_WITHIN_CATEGORIES_VERSION', '2.9.4' ); //options for plugin used in both public and admin classes. define('RPWC_OPTIONS', 'deefuse_ReOrderOrderedCategoriesOptions'); define('RPWC_OPTIONS_2', '_rpwc2_sort_options');