[wp-trac] [WordPress Trac] #63339: WordPress 6.8 REST API returns all sticky posts regardless of per_page setting
WordPress Trac
noreply at wordpress.org
Wed Apr 23 20:06:43 UTC 2025
#63339: WordPress 6.8 REST API returns all sticky posts regardless of per_page
setting
-------------------------------------+------------------------------
Reporter: se8820726 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 6.8
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------------
Comment (by abcd95):
Replying to [comment:3 se8820726]:
> /wp-json/wp/v2/posts?sticky=true
This will respect the pagination parameter if set, but will not return all
the sticky posts. If no pagination is set, then it defaults to `min(10,
total sticky posts)`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63339#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list