Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/compat/wordpress-5.8/block-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ function gutenberg_block_editor_rest_api_preload( array $preload_paths, $block_e
*
* @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 ) ) {
Expand Down
6 changes: 3 additions & 3 deletions lib/compat/wordpress-5.9/block-template-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ function gutenberg_get_block_templates( $query = array(), $template_type = 'wp_t
*/
function gutenberg_get_block_template( $id, $template_type = 'wp_template' ) {
/**
* Filters the block templates array before the query takes place.
* Filters the block template object before the query takes place.
*
* Return a non-null value to bypass the WordPress queries.
*
Expand Down Expand Up @@ -758,11 +758,11 @@ function gutenberg_get_block_template( $id, $template_type = 'wp_template' ) {
$block_template = get_block_file_template( $id, $template_type );

/**
* Filters the array of queried block templates array after they've been fetched.
* Filters the queried block template object after it's been fetched.
*
* @since 10.8
*
* @param WP_Block_Template $block_template The found block template.
* @param WP_Block_Template|null $block_template The found block template, or null if there isn't one.
* @param string $id Template unique identifier (example: theme_slug//template_slug).
* @param array $template_type wp_template or wp_template_part.
*/
Expand Down