[wp-trac] [WordPress Trac] #63307: REST API: Returns incorrect post when querying by slug if sticky posts exist
WordPress Trac
noreply at wordpress.org
Mon Apr 21 15:50:53 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
------------------------------------------------+--------------------------
Comment (by SirLouen):
Replying to [comment:6 nikunj8866]:
> It does change the default behavior of sticky posts being prioritized at
the top of the main REST response (/wp-json/wp/v2/posts), which was an
intentional feature.
In my test it was the other way around. With the patch, the sticky posts
disappear from top positions in `/posts`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63307#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list