[wp-trac] [WordPress Trac] #12821: Merge get_posts() and get_pages()

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 24 19:42:33 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 dbernar1):

 Replying to [comment:38 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()

 Thank you very much. I could even leave the further evolvement of
 get_pages() for later, just provide what I have after testing as a first
 step.

 Also thanks for the tip about is_post_type_hierarchical. I saw another
 place in the code where it wasn't being used, and I might provide another
 patch for that after.

 Great to be collaborating with you, scribu.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12821#comment:39>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list