[wp-trac] [WordPress Trac] #35907: Permit sticky posts to affect the query in REST_REQUEST

WordPress Trac noreply at wordpress.org
Mon Feb 10 22:22:08 UTC 2025


#35907: Permit sticky posts to affect the query in REST_REQUEST
-------------------------------------------------+-------------------------
 Reporter:  danielbachhuber                      |       Owner:  rmccue
     Type:  enhancement                          |      Status:  closed
 Priority:  high                                 |   Milestone:  6.8
Component:  Query                                |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  gutenberg-merge has-patch has-unit-  |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59801" 59801]:
 {{{
 #!CommitTicketReference repository="" revision="59801"
 REST API: Add support for the `ignore_sticky_posts` argument.

 Introduce `ignore_sticky` as a boolean argument for the posts endpoint for
 requests without the sticky posts being stuck. The new argument defaults
 to `false` with the value of the argument passed to `WP_Query`'s
 `ignore_sticky_posts` parameter.

 Props audrasjb, danielbachhuber, joemcgill, johnbillion, jorbin, mamaduka,
 rmccue.
 Fixes #35907.
 }}}

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


More information about the wp-trac mailing list