diff --git a/lib/compat/wordpress-6.3/navigation-block-preloading.php b/lib/compat/wordpress-6.3/navigation-block-preloading.php index 9f8102ea7fd9b0..5df3249fcfb2d1 100644 --- a/lib/compat/wordpress-6.3/navigation-block-preloading.php +++ b/lib/compat/wordpress-6.3/navigation-block-preloading.php @@ -12,7 +12,12 @@ * @param array $preload_paths Preload paths to be filtered. * @return array */ -function gutenberg_preload_navigation_posts( $preload_paths ) { +function gutenberg_preload_navigation_posts( $preload_paths, $context ) { + + // Limit to the Site Editor. + if ( ! empty( $context->name ) && 'core/edit-site' !== $context->name ) { + return $preload_paths; + } $navigation_rest_route = rest_get_route_for_post_type_items( 'wp_navigation'