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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user