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

WordPress Trac noreply at wordpress.org
Thu Apr 27 10:50:21 UTC 2023


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

Comment (by marianne38):

 Replying to [comment:87 spacedmonkey]:
 > Replying to [comment:85 marianne38]:
 > > @spacedmonkey Yes, the filter on query args is enough (with the
 {{{$args}}} received by {{{get_pages()}}} as parameter).
 >
 > I put together a PR that adds a filter. See
 [https://github.com/WordPress/wordpress-develop/pull/4386 #4386].

 Thank you.

 It looks good to me.

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


More information about the wp-trac mailing list