Make WordPress Core


Ignore:
Timestamp:
04/28/2025 04:03:59 PM (19 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].

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r59970 r60197  
    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.