[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 28 16:04:17 UTC 2025


#63307: REST API: Returns incorrect post when querying by slug if sticky posts
exist
-------------------------------------------------+-------------------------
 Reporter:  wpmudevsupport13                     |       Owner:  jorbin
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.8.1
Component:  REST API                             |     Version:  6.8
 Severity:  critical                             |  Resolution:  fixed
 Keywords:  changes-requested has-testing-info   |     Focuses:  rest-api
  has-unit-tests dev-feedback has-patch commit   |
-------------------------------------------------+-------------------------
Changes (by jorbin):

 * owner:  (none) => jorbin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60197" 60197]:
 {{{
 #!CommitTicketReference repository="" revision="60197"
 REST API: Change posts endpoint to ignore_sticky=true by default

 This restores the 6.7 and below behavior for the posts endpoint which did
 not include sticky posts by default.

 Follow-up to [59801].

 Props nikunj8866, SirLouen, ankitmaru, wildworks, karthikeya01, Mamaduka,
 spacedmonkey, jorbin.
 Fixes #63307. See #35907.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63307#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list