mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user