From 04cd9e2db29238833fe27b2ee38b20322c4a61f8 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 9 Nov 2021 12:58:08 +0000 Subject: [PATCH] Editor, Docs: Add documentation for the `$block_editor_context` parameter of the `block_editor_rest_api_preload_paths` hook. See #52920. See #53399. git-svn-id: https://develop.svn.wordpress.org/trunk@52072 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/block-editor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/block-editor.php b/src/wp-includes/block-editor.php index 9202a8d08d..3fa3beed2a 100644 --- a/src/wp-includes/block-editor.php +++ b/src/wp-includes/block-editor.php @@ -436,7 +436,8 @@ function block_editor_rest_api_preload( array $preload_paths, $block_editor_cont * * @since 5.8.0 * - * @param string[] $preload_paths Array of paths to preload. + * @param string[] $preload_paths Array of paths to preload. + * @param WP_Block_Editor_Context $block_editor_context The current block editor context. */ $preload_paths = apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context ); if ( ! empty( $block_editor_context->post ) ) {