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

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 21 02:50:44 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):

 Hello,

 I've removed duplication between WP_Query::get_posts() and get_pages(),
 while preserving the unique interface get_pages() provides. I've not
 pulled in any of the unique functionality of get_pages() into
 WP_Query::get_posts() at this time. Please help me understand which
 functionality I should pull into WP_Query, and what interface I should
 provide.

 I will then implement that, and perform testing on the code to ensure it
 works as expected.

 I am providing the following patch as a reference for anyone who would
 like to read the code and provide the feedback I need, do not rely on it
 to work at this time - it has not been tested.

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


More information about the wp-trac mailing list