To prevent users from setting an order that is ignored by WordPress, this check ought to be replaced with a check for the page attributes support only.
Steps to Reproduce
Disable this plugin
Enable a hierarchical CPT without page-attributes support. I've created a gist with a mini plugin.
Create 20 CPT posts via wp-cli: wp post generate --count=20 --post_type=pwcc_test_type
Edit one of the CPTs in the WP Dashboard
Observe you can't modify the menu position via the page attributes setting
Enable this plugin
Visit the CPTs post list table
Observe you can modify the menu position via drag and drop
Screenshots, screen recording, code snippet
CPT without page attributes support
In editor, the menu position can not be set
In the post list table, the posts can be dragged and dropped
Describe the bug
Support for ordering of hierarchical custom post types is indicated by the
page-attributes
support toggle.This plugin enables support for all hierarchical post types without regard for the
page-attributes
setting. https://github.com/10up/simple-page-ordering/blob/c44b8df06e9a6118bcfa4156d5fe70013539a54c/simple-page-ordering.php#L75-L76To prevent users from setting an order that is ignored by WordPress, this check ought to be replaced with a check for the page attributes support only.
Steps to Reproduce
wp post generate --count=20 --post_type=pwcc_test_type
Screenshots, screen recording, code snippet
CPT without page attributes support
In editor, the menu position can not be set
In the post list table, the posts can be dragged and dropped
Environment information
OS: MacOs 11.6.5 Browser: Firefox Developer Edition 101b
WordPress information
WordPress 6.0 RC1
Code of Conduct