[wp-trac] [WordPress Trac] #51852: "any" value in "post_type" param in "get_posts" by default ignore attachments

WordPress Trac noreply at wordpress.org
Mon Feb 8 22:50:51 UTC 2021


#51852: "any" value in "post_type" param in "get_posts" by default ignore
attachments
------------------------------------------+-----------------------
 Reporter:  dam6pl                        |       Owner:  (none)
     Type:  defect (bug)                  |      Status:  assigned
 Priority:  normal                        |   Milestone:  5.7
Component:  Query                         |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  docs
------------------------------------------+-----------------------

Comment (by peterwilsoncc):

 In [changeset:"50257" 50257]:
 {{{
 #!CommitTicketReference repository="" revision="50257"
 Posts/Post Types: Improve documentation of `get_posts()`.

 Add references to `WP_Query` to the documentation of `get_posts()`. As the
 developer documentation for `WP_Query` includes an expanded explanation a
 full link to developer.wordpress.org is included rather than a standard
 `@see`.

 Props dam6pl, peterwilsoncc.
 See #51852, #51800.
 }}}

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


More information about the wp-trac mailing list