Make WordPress Core


Ignore:
Timestamp:
06/29/2022 02:22:56 PM (4 years ago)
Author:
SergeyBiryukov
Message:

REST API: Add missing options to the settings endpoint.

This adds the show_on_front, page_on_front, and page_for_posts options to the settings endpoint that were missed during WP 6.0 backports.

Related PR from Gutenberg repository:

Props Mamaduka, spacedmonkey, gziolo, jameskoster, SergeyBiryukov.
Merges [53588] and [53589] to the 6.0 branch.
See #56058.

Location:
branches/6.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0

  • branches/6.0/tests/phpunit/tests/rest-api/rest-settings-controller.php

    r52434 r53590  
    107107                        'default_post_format',
    108108                        'posts_per_page',
     109                        'show_on_front',
     110                        'page_on_front',
     111                        'page_for_posts',
    109112                        'default_ping_status',
    110113                        'default_comment_status',
Note: See TracChangeset for help on using the changeset viewer.