ColorlibHQ / simple-custom-post-order

Order posts(posts, any custom post types) using a Drag and Drop Sortable JavaScript. Configuration is unnecessary.
http://wordpress.org/plugins/simple-custom-post-order/
GNU General Public License v3.0
32 stars 21 forks source link

Editor can’t order posts anymore #139

Open beatricelucaci opened 1 month ago

beatricelucaci commented 1 month ago

Hi, there is an issue with the latest release of the plugin: Editors are currently unable to save the order of items.

https://wordpress.org/support/topic/editor-cant-order-posts-anymore/

beatricelucaci commented 1 month ago

more info from our users:

it’s line 332 (which is inside the update_menu_order function) that now does a check to see if user can ‘manage_options’. This is really only an administrator capability and should prob be ‘edit_others_posts’ to allow editors to save the menu order. Note that ‘edit_posts’ is probably too wide a capability.

I guess it’s because this is set

current_user_can('manage_options') So only admin are allowed. Here in your code: https://plugins.trac.wordpress.org/browser/simple-custom-post-order/tags/2.5.8/simple-custom-post-order.php#L332

In the previous version of 2.5.7 this was not set.