Skip to content

Commit

Permalink
Fix gutenberg_resolve_template() return documentation (#33800)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfelt authored Aug 2, 2021
1 parent 9c3b78f commit 51c63dc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/full-site-editing/template-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ function gutenberg_override_query_template( $template, $type, array $templates )
*
* @param string $template_type The current template type.
* @param string[] $template_hierarchy (optional) The current template hierarchy, ordered by priority.
* @return null|array {
* @type WP_Post|null template_post A template post object, or null if none could be found.
* @type int[] A list of template parts IDs for the template.
* }
* @return null|WP_Block_Template A block template if found. Null if not.
*/
function gutenberg_resolve_template( $template_type, $template_hierarchy ) {
if ( ! $template_type ) {
Expand Down

0 comments on commit 51c63dc

Please sign in to comment.