Make WordPress Core

Opened 8 years ago

Last modified 2 years ago

#12821 assigned enhancement

Allow get_pages() to query non-heirarchical post types? — at Initial Version

Reported by: mikeschinkel Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.0
Component: Posts, Post Types Keywords: needs-testing needs-patch needs-unit-tests 3.8-early
Focuses: Cc:


It seems "hierarchical" is an optional argument and yet get_pages() checks for non-hierarchical post types and if so exits. Is there a reason for get_pages() not to support non-heirachical post types? Seem like it might be a legacy concern prior to custom post types?

FYI, I changed my custom post type where I ran into this to be hierarchical just to test it and it worked fine but that custom post type really should be hierarchical.

Change History (0)

Note: See TracTickets for help on using tickets.