[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 05:41:34 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:
------------------------------------------+------------------------------
Comment (by dam6pl):
@peterwilsoncc fully understand and agree with you. But for me this
behavior was unclear and I had to check the `get_posts` function source to
find the reason so maybe it could be a good point to mention that
somewhere in the documentation?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51852#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list