Make WordPress Core


Ignore:
Timestamp:
11/23/2021 09:35:57 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Various docblock corrections and improvements.

See #53399

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-styles-registry.php

    r51154 r52236  
    1818     *
    1919     * @since 5.3.0
    20      * @var array
     20     *
     21     * @var array[]
    2122     */
    2223    private $registered_block_styles = array();
     
    2627     *
    2728     * @since 5.3.0
     29     *
    2830     * @var WP_Block_Styles_Registry|null
    2931     */
     
    3133
    3234    /**
    33      * Registers a block style.
     35     * Registers a block style for the given block type.
    3436     *
    3537     * @since 5.3.0
     
    7274
    7375    /**
    74      * Unregisters a block style.
     76     * Unregisters a block style of the given block type.
     77     *
     78     * @since 5.3.0
    7579     *
    7680     * @param string $block_name       Block type name including namespace.
     
    9599
    96100    /**
    97      * Retrieves an array containing the properties of a registered block style.
     101     * Retrieves the properties of a registered block style for the given block type.
    98102     *
    99103     * @since 5.3.0
     
    116120     * @since 5.3.0
    117121     *
    118      * @return array Array of arrays containing the registered block styles properties grouped per block,
    119      *               and per style.
     122     * @return array[] Array of arrays containing the registered block styles properties grouped by block type.
    120123     */
    121124    public function get_all_registered() {
     
    124127
    125128    /**
    126      * Retrieves registered block styles for a specific block.
     129     * Retrieves registered block styles for a specific block type.
    127130     *
    128131     * @since 5.3.0
    129132     *
    130133     * @param string $block_name Block type name including namespace.
    131      * @return array Array whose keys are block style names and whose value are block style properties.
     134     * @return array[] Array whose keys are block style names and whose values are block style properties.
    132135     */
    133136    public function get_registered_styles_for_block( $block_name ) {
     
    139142
    140143    /**
    141      * Checks if a block style is registered.
     144     * Checks if a block style is registered for the given block type.
    142145     *
    143146     * @since 5.3.0
Note: See TracChangeset for help on using the changeset viewer.