Opened 9 years ago
#40300 new defect (bug)
`title` parameter causes `WP_Query` to return sticky posts.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 4.7.3 |
| Component: | Query | Keywords: | |
| Focuses: | Cc: |
Description
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.
Note: See
TracTickets for help on using
tickets.