From 04d02e8630722094e476b10bb21ed19876eb0157 Mon Sep 17 00:00:00 2001 From: Ella <4710635+ellatrix@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:13:50 +0100 Subject: [PATCH] Site editor: preload settings --- src/wp-admin/site-editor.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-admin/site-editor.php b/src/wp-admin/site-editor.php index 3207bccdf2632..c7344cd115574 100644 --- a/src/wp-admin/site-editor.php +++ b/src/wp-admin/site-editor.php @@ -90,6 +90,8 @@ static function ( $classes ) { $preload_paths = array( array( rest_get_route_for_post_type_items( 'attachment' ), 'OPTIONS' ), array( rest_get_route_for_post_type_items( 'page' ), 'OPTIONS' ), + '/wp/v2/settings', + array( '/wp/v2/settings', 'OPTIONS' ), '/wp/v2/types?context=view', '/wp/v2/types/wp_template?context=edit', '/wp/v2/types/wp_template_part?context=edit',