Make WordPress Core

Changeset 63495


Ignore:
Timestamp:
09/05/2026 09:32:30 AM (6 weeks 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.

Location:
trunk/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/widgets-form-blocks.php

    r62649 r63495  
    122122                 * @since 6.4.0
    123123                 *
    124                  * @param string $message The message being displayed.
     124                 * @param string $message   The message being displayed.
    125125                 * @param bool   $installed Whether the Classic Widget plugin is installed.
    126126                 */
  • trunk/src/wp-includes/block-supports/layout.php

    r63330 r63495  
    15641564 *
    15651565 * @param string $block_content Rendered block content.
    1566  * @param  array  $block        Block object.
     1566 * @param array  $block         Block object.
    15671567 * @return string Filtered block content.
    15681568 */
  • trunk/src/wp-includes/block-supports/settings.php

    r63320 r63495  
    7070 * @access private
    7171 *
    72  * @param string|null $pre_render   The pre-rendered content. Default null.
    73  * @param array       $block The block being rendered.
     72 * @param string|null $pre_render The pre-rendered content. Default null.
     73 * @param array       $block      The block being rendered.
    7474 * @return null
    7575 */
  • 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.
  • trunk/src/wp-includes/blocks.php

    r63340 r63495  
    12591259 * @access private
    12601260 *
    1261  * @param string       $content  Serialized content.
    1262  * @param WP_Post|null $post     A post object that the content belongs to. If set to `null`,
    1263  *                               `get_post()` will be called to use the current post as context.
    1264  *                               Default: `null`.
    1265  * @param callable     $callback A function that will be called for each block to generate
    1266  *                               the markup for a given list of blocks that are hooked to it.
    1267  *                               Default: 'insert_hooked_blocks'.
     1261 * @param string       $content                       Serialized content.
     1262 * @param WP_Post|null $post                          A post object that the content belongs to. If set to `null`,
     1263 *                                                    `get_post()` will be called to use the current post as context.
     1264 *                                                    Default: `null`.
     1265 * @param callable     $callback                      A function that will be called for each block to generate
     1266 *                                                    the markup for a given list of blocks that are hooked to it.
     1267 *                                                    Default: 'insert_hooked_blocks'.
    12681268 * @param array|null   $ignored_hooked_blocks_at_root A reference to an array that will be populated
    1269  *                               with the ignored hooked blocks at the root level.
    1270  *                               Default: `null`.
     1269 *                                                    with the ignored hooked blocks at the root level.
     1270 *                                                    Default: `null`.
    12711271 * @return string The serialized markup.
    12721272 */
  • trunk/src/wp-includes/class-wp-theme-json-schema.php

    r63320 r63495  
    3838         * @since 6.6.0 Migrate up to v3 and add $origin parameter.
    3939         *
    40          * @param array $theme_json The structure to migrate.
    41          * @param string $origin    Optional. What source of data this object represents.
    42          *                          One of 'blocks', 'default', 'theme', or 'custom'. Default 'theme'.
     40         * @param array  $theme_json The structure to migrate.
     41         * @param string $origin     Optional. What source of data this object represents.
     42         *                           One of 'blocks', 'default', 'theme', or 'custom'. Default 'theme'.
    4343         * @return array The structure in the last version.
    4444         */
    … …  
    101101         * @since 6.6.0
    102102         *
    103          * @param array $old     Data to migrate.
     103         * @param array  $old    Data to migrate.
    104104         * @param string $origin What source of data this object represents.
    105105         *                       One of 'blocks', 'default', 'theme', or 'custom'.
    … …  
    214214         *
    215215         * @param array $settings Reference to the current settings array.
    216          * @param array $path Path to the property to be removed.
     216         * @param array $path     Path to the property to be removed.
    217217         */
    218218        private static function unset_setting_by_path( &$settings, $path ) {
  • trunk/src/wp-includes/class-wp-theme-json.php

    r63426 r63495  
    955955         * Processes pseudo-selectors for any node (block or variation).
    956956         *
    957          * @param array  $node The node data (block or variation).
    958          * @param string $base_selector The base selector.
    959          * @param array  $settings The theme settings.
    960          * @param string $block_name The block name.
    961          * @param array|null $block_metadata Metadata about the block to get styles for.
     957         * @param array      $node            The node data (block or variation).
     958         * @param string     $base_selector  The base selector.
     959         * @param array      $settings        The theme settings.
     960         * @param string     $block_name      The block name.
     961         * @param array|null $block_metadata  Metadata about the block to get styles for.
    962962         * @param array|null $style_variation Style variation metadata.
    963963         * @return array Array of pseudo-selector declarations.
    … …  
    29962996         * @since 6.7.0 `ref` resolution of background properties, and assigning custom default values.
    29972997         *
    2998          * @param array   $styles Styles to process.
    2999          * @param array   $settings Theme settings.
    3000          * @param array   $properties Properties metadata.
    3001          * @param array   $theme_json Theme JSON array.
    3002          * @param string  $selector The style block selector.
     2998         * @param array   $styles           Styles to process.
     2999         * @param array   $settings         Theme settings.
     3000         * @param array   $properties       Properties metadata.
     3001         * @param array   $theme_json       Theme JSON array.
     3002         * @param string  $selector         The style block selector.
    30033003         * @param boolean $use_root_padding Whether to add custom properties at root level.
    30043004         * @return array Returns the modified $declarations.
    … …  
    31343134         * @since 6.7.0 Added support for background image refs.
    31353135         *
    3136          * @param array $styles Styles subtree.
    3137          * @param array $path   Which property to process.
     3136         * @param array $styles     Styles subtree.
     3137         * @param array $path       Which property to process.
    31383138         * @param array $theme_json Theme JSON array.
    31393139         * @return string|array Style property value.
    … …  
    41964196         * @since 7.0.0 Added `$options` parameter to control alignment styles output for classic themes.
    41974197         *
    4198          * @param string $selector The root node selector.
     4198         * @param string $selector       The root node selector.
    41994199         * @param array  $block_metadata The metadata for the root block.
    42004200         * @param array  $options        Optional. An array of options for now used for internal purposes only.
    … …  
    45994599         * @since 5.9.0
    46004600         *
    4601          * @param string $slug The slug we want to find a match from default presets.
     4601         * @param string $slug      The slug we want to find a match from default presets.
    46024602         * @param array  $base_path The path to inspect. It's 'settings' by default.
    46034603         * @return string|null
    … …  
    59135913         * @since 7.0.0
    59145914         *
    5915          * @param array  $style_variation Style variation metadata.
     5915         * @param array  $style_variation  Style variation metadata.
    59165916         * @param string $feature_selector CSS selector for the feature.
    59175917         * @return string Feature selector with block style variation selector added.
  • trunk/src/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php

    r62178 r63495  
    126126         * @since 6.6.0 Added the $rules_group parameter.
    127127         *
    128          * @param string $selector The CSS selector.
     128         * @param string $selector    The CSS selector.
    129129         * @param string $rules_group A parent CSS selector in the case of nested CSS, or a CSS nested @rule,
    130130         *                            such as `@media (min-width: 80rem)` or `@layer module`.
Note: See TracChangeset for help on using the changeset viewer.