[wp-trac] [WordPress Trac] #12821: Merge get_posts() and get_pages()
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 21 11:47:49 UTC 2012
#12821: Merge get_posts() and get_pages()
-------------------------------------+-----------------------------
Reporter: mikeschinkel | Owner: garyc40
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Post Types | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+-----------------------------
Comment (by scribu):
Eliminating the duplication, but keeping the hierarchical parts inside
get_pages() seems like the right way to go.
> // TODO extract this to something like is_a_hierarchical_post_type(
$post_type )
We already have is_post_type_hierarchical()
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12821#comment:38>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list