Skip to content

Commit

Permalink
v2.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurovrata V committed May 25, 2021
1 parent 0533105 commit 5cd626e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 5 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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){
Expand Down Expand Up @@ -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 =
Expand Down
3 changes: 0 additions & 3 deletions admin/class-reorder-post-within-categories-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions reorder-post-within-categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -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+
Expand All @@ -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');
Expand Down

0 comments on commit 5cd626e

Please sign in to comment.