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

WordPress Trac noreply at wordpress.org
Tue Nov 24 22:48:01 UTC 2020


#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:  Awaiting Review
Component:  Query                         |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  docs
------------------------------------------+------------------------------
Changes (by peterwilsoncc):

 * focuses:   => docs


Comment:

 Yes, some clearer docs can certainly be added.

 Does this work:
 * update status docs to the WP_Query docs clarifing that `inherit` is
 excluded https://developer.wordpress.org/reference/classes/wp_query
 /#status-parameters
 * add a reference to `WP_Query` in the see also links.

 I have added a docs focus to this ticket for the original commit to
 clarify.

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


More information about the wp-trac mailing list