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:
* [https://github.com/WordPress/gutenberg/pull/38607 #38607 Page for Posts: Display notice in template panel]

Props Mamaduka, spacedmonkey, gziolo, jameskoster.
See #56058.

git-svn-id: https://develop.svn.wordpress.org/trunk@53588 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-06-29 13:46:37 +00:00
parent aaa4d1a4a7
commit a0b53ac1db
3 changed files with 52 additions and 0 deletions
@@ -106,6 +106,9 @@ class WP_Test_REST_Settings_Controller extends WP_Test_REST_Controller_Testcase
'default_category',
'default_post_format',
'posts_per_page',
'show_on_front',
'page_on_front',
'page_for_posts',
'default_ping_status',
'default_comment_status',
'site_icon', // Registered in wp-includes/blocks/site-logo.php