Skip to content

Commit c88c5cd

Browse files
authored
Merge pull request #144 from ColorlibHQ/2.5.9
2.5.9
2 parents 6ce29b7 + c9c21f9 commit c88c5cd

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

readme.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Contributors: silkalns
33
Tags: custom post order, post order, js post order, page order, posts order, category order, sort posts, sort pages, sort custom posts
44
Requires at least: 6.2
5-
Requires PHP: 7.2.5 or higher
6-
Tested up to: 6.6
7-
Stable tag: 2.5.8
5+
Requires PHP: 7.2.5
6+
Tested up to: 6.7
7+
Stable tag: 2.5.9
88
License: GPLv3 or later
99
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -36,6 +36,9 @@ An answer to that question.
3636

3737
== Changelog ==
3838

39+
= Version 2.5.9 - 29.11.2024 =
40+
* Allow editors to change posts order.
41+
3942
= Version 2.5.8 - 10.10.2024 =
4043
* Security update
4144

simple-custom-post-order.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
* Plugin Name: Simple Custom Post Order
44
* Plugin URI: https://wordpress.org/plugins-wp/simple-custom-post-order/
55
* Description: Order Items (Posts, Pages, and Custom Post Types) using a Drag and Drop Sortable JavaScript.
6-
* Version: 2.5.8
6+
* Version: 2.5.9
77
* Author: Colorlib
88
* Author URI: https://colorlib.com/
9-
* Tested up to: 6.3.1
9+
* Tested up to: 6.7
1010
* Requires: 6.2 or higher
1111
* License: GPLv3 or later
1212
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
13-
* Requires PHP: 7.2.5 or higher
13+
* Requires PHP: 7.2.5
1414
* Text Domain: simple-custom-post-order
1515
* Domain Path: /languages
1616
*
@@ -329,7 +329,7 @@ public function update_menu_order() {
329329

330330
check_ajax_referer( 'scporder_nonce_action', 'nonce' );
331331

332-
if ( ! current_user_can( 'manage_options' ) ) {
332+
if ( ! current_user_can( 'edit_posts' ) ) {
333333
return;
334334
}
335335

@@ -382,7 +382,7 @@ public function update_menu_order_tags() {
382382

383383
check_ajax_referer( 'scporder_nonce_action', 'nonce' );
384384

385-
if ( ! current_user_can( 'manage_options' ) ) {
385+
if ( ! current_user_can( 'edit_posts' ) ) {
386386
return;
387387
}
388388

0 commit comments

Comments
 (0)