Opened 10 years ago
#40300 new defect (bug)
`title` parameter causes `WP_Query` to return sticky posts.
| Reported by: | wujek_bogdan | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Query | Version: | 4.7.3 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)