[wp-trac] [WordPress Trac] #40300: `title` parameter causes `WP_Query` to return sticky posts.
WordPress Trac
noreply at wordpress.org
Wed Mar 29 14:24:31 UTC 2017
#40300: `title` parameter causes `WP_Query` to return sticky posts.
--------------------------+-----------------------------
Reporter: wujek_bogdan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.7.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When a `title` parameter is present in the WP_Query arguments array then
sticky posts are included in the `$query->posts` array.
I'm not sure is it a bug, or is it just an incomplete documentation. The
same happens with `post__in` parameter but in this case, I'm sure that
it's not a bug because the documentation mentions that sticky posts are
returned when using the `post__in` parameter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40300>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list