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/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.
Note: See TracChangeset for help on using the changeset viewer.