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

WordPress Trac noreply at wordpress.org
Tue Mar 21 12:47:34 UTC 2023


#12821: Merge get_posts() and get_pages()
-------------------------------------------------+-------------------------
 Reporter:  mikeschinkel                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.3
Component:  Posts, Post Types                    |     Version:  3.0
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  needs-dev-note has-patch has-unit-   |     Focuses:
  tests needs-testing dev-feedback commit        |  performance
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55569" 55569]:
 {{{
 #!CommitTicketReference repository="" revision="55569"
 Posts, Post Types: Use WP_Query internally in get_pages.

  Convert `get_pages` to use `WP_Query` internally. Using WP_Query means
 that a lot of code has been removed however existing parameters supported
 by get_pages are transformed in to query arguments. The custom caching
 solution found in the old version of this function is replaced with the
 caching found in WP_Query (added in [53941]). This change adds consistency
 to the codebase, as improvements and changes to `WP_Query` will filter
 down to the `get_pages` function.

 Props mikeschinkel, spacedmonkey, nacin, scribu, filosofo, jane, garyc40,
 markoheijnen, grandslambert, kevinB, wlindley, dbernar1, atimmer,
 mdawaffe, helen, benjibee, johnbillion, peterwilsoncc, costdev, flixos90,
 joemcgill.
 Fixes #12821.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/12821#comment:76>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list