Make WordPress Core


Ignore:
Timestamp:
04/28/2025 04:47:40 PM (16 months ago)
Author:
jorbin
Message:

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].

Reviewed by desrosj.
Merges [60197] to the 6.8 branch.

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

Location:
branches/6.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.8

  • branches/6.8/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r59970 r60200  
    30763076                                'description' => __( 'Whether to ignore sticky posts or not.' ),
    30773077                                'type'        => 'boolean',
    3078                                 'default'     => false,
     3078                                'default'     => true,
    30793079                        );
    30803080                }
Note: See TracChangeset for help on using the changeset viewer.