diff --git a/src/wp-includes/block-editor.php b/src/wp-includes/block-editor.php
index aaa249cb7b..50a20fcac7 100644
|
a
|
b
|
function block_editor_rest_api_preload( array $preload_paths, $block_editor_cont |
| 468 | 468 | */ |
| 469 | 469 | $backup_global_post = ! empty( $post ) ? clone $post : $post; |
| 470 | 470 | |
| | 471 | foreach ( $preload_paths as &$path ) { |
| | 472 | if ( ! str_starts_with( $path, '/' ) ) { |
| | 473 | $path = '/' . $path; |
| | 474 | } |
| | 475 | } |
| | 476 | |
| 471 | 477 | $preload_data = array_reduce( |
| 472 | 478 | $preload_paths, |
| 473 | 479 | 'rest_preload_api_request', |