Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WP-r44338: Correctly show post type hierarchy in admin (#333)
In https://core.trac.wordpress.org/changeset/44185, a bug was introduced where hierarchical post types would not display in the correct default order (hierarchically). This was caused by a `! isset()` check, which returned `false` after https://core.trac.wordpress.org/changeset/44185, causing the correct default value to not be applied. This switches that conditional to use an `empty()` check, ignoring the new empty string assignment that was added to prevent a PHP notice when `compact()` is called. WP:Props davidbinda. Fixes https://core.trac.wordpress.org/ticket/45711. Conflicts: src/wp-admin/includes/post.php ---- Merges https://core.trac.wordpress.org/changeset/44338 / WordPress/wordpress-develop@47584c7bc0 to ClassicPress. See #263.
- Loading branch information