Make WordPress Core


Ignore:
Timestamp:
09/05/2026 09:32:30 AM (2 months ago)
Author:
wildworks
Message:

Docs: Align @param tag columns in block editor docblocks.

Aligns @param tag columns in docblocks across the block editor per the PHP inline documentation standards.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/13311

Props mukesh27, wildworks.
See #65818.

File:
1 edited

Legend:

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

    r63385 r63495  
    11161116         * @param WP_Block_Template[]|null $block_templates Return an array of block templates to short-circuit the default query,
    11171117         *                                                  or null to allow WP to run its normal queries.
    1118          * @param array  $query {
     1118         * @param array                    $query {
    11191119         *     Arguments to retrieve templates. All arguments are optional.
    11201120         *
    … …  
    11241124         *     @type string   $post_type Post type to get the templates for.
    11251125         * }
    1126          * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'.
     1126         * @param string                   $template_type  Template type. Either 'wp_template' or 'wp_template_part'.
    11271127         */
    11281128        $templates = apply_filters( 'pre_get_block_templates', null, $query, $template_type );
    … …  
    12651265         * @since 5.9.0
    12661266         *
    1267          * @param WP_Block_Template[] $query_result Array of found block templates.
     1267         * @param WP_Block_Template[] $query_result  Array of found block templates.
    12681268         * @param array               $query {
    12691269         *     Arguments to retrieve templates. All arguments are optional.
Note: See TracChangeset for help on using the changeset viewer.