In #103, we changed our sortable check to only rely on if a post type supports page-attributes. This broke sorting for sites that use post types that are hierarchical but don't have that attribute set. While it may better align with how core is set up to only look at page-attributes, it seems best to revert that change so we're not breaking functionality on sites that rely on the old behavior.
This isn't a complete revert of the changes introduced in #103 but does bring back the missing functionality.
How to test the Change
Create a post type that has page-attributes set
Add content to this post type
Ensure you can sort this content and it reflects properly on the front-end
Create a post type that doesn't have page-attributes set but is set as hierarchical
Run through the same test steps and ensure things work
Changelog Entry
Changed - Allow hierarchical post types that don't have page-attributes set to be sorted.
Description of the Change
In #103, we changed our sortable check to only rely on if a post type supports
page-attributes
. This broke sorting for sites that use post types that are hierarchical but don't have that attribute set. While it may better align with how core is set up to only look atpage-attributes
, it seems best to revert that change so we're not breaking functionality on sites that rely on the old behavior.This isn't a complete revert of the changes introduced in #103 but does bring back the missing functionality.
How to test the Change
page-attributes
setpage-attributes
set but is set as hierarchicalChangelog Entry
Credits
Props @dkotter
Checklist: