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
This commit is contained in:
parent
cdf6e7c128
commit
2b2781cb0f
|
@ -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 ) {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue