Make WordPress Core

Changeset 53727


Ignore:
Timestamp:
07/20/2022 01:12:30 PM (3 years ago)
Author:
audrasjb
Message:

Docs: Fix indentation issues in block-template-utils.php docblocks, as per docs standards.

See #55646.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-template-utils.php

    r53402 r53727  
    198198 *
    199199 * @param string $type Template part area name.
    200  *
    201200 * @return string Input if supported, else the uncategorized value.
    202201 */
     
    251250 * @param string $template_type 'wp_template' or 'wp_template_part'.
    252251 * @param string $slug          Template slug.
    253  *
    254252 * @return array|null Template.
    255253 */
     
    296294 *
    297295 * @param string $template_type 'wp_template' or 'wp_template_part'.
    298  *
    299296 * @return array Template.
    300297 */
     
    371368 *
    372369 * @param array $template_info Template to add information to (requires 'type' and 'slug' fields).
    373  *
    374370 * @return array Template info.
    375371 */
     
    397393 *
    398394 * @param array $blocks array of blocks.
    399  *
    400395 * @return array block references to the passed blocks and their inner blocks.
    401396 */
     
    430425 *
    431426 * @param string $template_content serialized wp_template content.
    432  *
    433427 * @return string Updated 'wp_template' content.
    434428 */
     
    501495 * @param array  $template_file Theme file.
    502496 * @param string $template_type 'wp_template' or 'wp_template_part'.
    503  *
    504497 * @return WP_Block_Template Template.
    505498 */
     
    545538 *
    546539 * @param WP_Post $post Template post.
    547  *
    548540 * @return WP_Block_Template|WP_Error Template.
    549541 */
     
    610602 * }
    611603 * @param string $template_type 'wp_template' or 'wp_template_part'.
    612  *
    613604 * @return array Templates.
    614605 */
     
    745736 * @param string $template_type Optional. Template type: `'wp_template'` or '`wp_template_part'`.
    746737 *                              Default `'wp_template'`.
    747  *
    748738 * @return WP_Block_Template|null Template.
    749739 */
    750740function get_block_template( $id, $template_type = 'wp_template' ) {
    751741    /**
    752      *Filters the block template object before the query takes place.
     742     * Filters the block template object before the query takes place.
    753743     *
    754744     * Return a non-null value to bypass the WordPress queries.
     
    758748     * @param WP_Block_Template|null $block_template Return block template object to short-circuit the default query,
    759749     *                                               or null to allow WP to run its normal queries.
    760      * @param string $id                             Template unique identifier (example: theme_slug//template_slug).
    761      * @param string $template_type                  Template type: `'wp_template'` or '`wp_template_part'`.
     750     * @param string                 $id             Template unique identifier (example: theme_slug//template_slug).
     751     * @param string                 $template_type  Template type: `'wp_template'` or '`wp_template_part'`.
    762752     */
    763753    $block_template = apply_filters( 'pre_get_block_template', null, $id, $template_type );
Note: See TracChangeset for help on using the changeset viewer.