mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Editor, Docs: Add documentation for the $block_editor_context
parameter of the block_editor_rest_api_preload_paths
hook.
See #52920. See #53399. Built from https://develop.svn.wordpress.org/trunk@52072 git-svn-id: http://core.svn.wordpress.org/trunk@51664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
55840750c5
commit
0b45e56052
@ -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 ) ) {
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-52071';
|
||||
$wp_version = '5.9-alpha-52072';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user