[wp-trac] [WordPress Trac] #63307: REST API: Returns incorrect post when querying by slug if sticky posts exist
WordPress Trac
noreply at wordpress.org
Thu Apr 24 07:08:23 UTC 2025
#63307: REST API: Returns incorrect post when querying by slug if sticky posts
exist
-------------------------------------------------+-------------------------
Reporter: wpmudevsupport13 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: REST API | Version: 6.8
Severity: normal | Resolution:
Keywords: changes-requested has-testing-info | Focuses: rest-api
2nd-opinion has-patch |
-------------------------------------------------+-------------------------
Comment (by ankitmaru):
Hello,
PR submitted: https://github.com/WordPress/wordpress-develop/pull/8730
Fixes an issue where sticky posts could appear in REST API results even
when using specific filters like slug.
Adds ignore_sticky support and defaults to ignoring sticky posts when
exact filters are used.
Let me know if any changes are needed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63307#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list