From 2b2781cb0f831a7cac23a4e82f10c1bc6924f9af Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 19 Jul 2024 15:56:16 +0000 Subject: [PATCH] Docs: Correct `@return` value for `_get_block_templates_files()`. The function returns `null` if `$template_type` is not `wp_template` or `wp_template_part`. Follow-up to [52062]. Props dilipbheda, mukesh27. Fixes #61705. Built from https://develop.svn.wordpress.org/trunk@58768 git-svn-id: http://core.svn.wordpress.org/trunk@58170 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-template-utils.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/block-template-utils.php b/wp-includes/block-template-utils.php index f7a10ab672..fe43d89564 100644 --- a/wp-includes/block-template-utils.php +++ b/wp-includes/block-template-utils.php @@ -355,7 +355,7 @@ function _get_block_template_file( $template_type, $slug ) { * @type string $post_type Post type to get the templates for. * } * - * @return array Template + * @return array|null Template files on success, null if `$template_type` is not matched. */ function _get_block_templates_files( $template_type, $query = array() ) { if ( 'wp_template' !== $template_type && 'wp_template_part' !== $template_type ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 3a743557f9..e29143ba28 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58767'; +$wp_version = '6.7-alpha-58768'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.