From 87955ce7ba0cc651ec2a0d7f9054f39396428bdf Mon Sep 17 00:00:00 2001 From: Ella Date: Tue, 3 Dec 2024 11:21:35 +0100 Subject: [PATCH] Preload: add post type --- lib/compat/wordpress-6.8/preload.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compat/wordpress-6.8/preload.php b/lib/compat/wordpress-6.8/preload.php index 0a36ea7f7227d..0e887fc081bcb 100644 --- a/lib/compat/wordpress-6.8/preload.php +++ b/lib/compat/wordpress-6.8/preload.php @@ -22,6 +22,7 @@ function gutenberg_block_editor_preload_paths_6_8( $paths, $context ) { $route_for_post = rest_get_route_for_post( $post ); if ( $route_for_post ) { $paths[] = add_query_arg( 'context', 'edit', $route_for_post ); + $paths[] = add_query_arg( 'context', 'edit', '/wp/v2/types/' . $post->post_type ); if ( 'page' === $post->post_type ) { $paths[] = add_query_arg( 'slug',