Make WordPress Core

Changeset 54874


Ignore:
Timestamp:
11/24/2022 10:50:16 PM (17 months ago)
Author:
audrasjb
Message:

Docs: Various docblock fixes in Block Supports related functions.

See #56792.

Location:
trunk/src/wp-includes/block-supports
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-supports/elements.php

    r54873 r54874  
    1414 *
    1515 * @param array $block Block object.
    16  * @return string      The unique class name.
     16 * @return string The unique class name.
    1717 */
    1818function wp_get_elements_class_name( $block ) {
     
    9393 * @access private
    9494 *
    95  * @param string|null $pre_render   The pre-rendered content. Default null.
    96  * @param array       $block        The block being rendered.
    97  *
     95 * @param string|null $pre_render The pre-rendered content. Default null.
     96 * @param array       $block      The block being rendered.
    9897 * @return null
    9998 */
  • trunk/src/wp-includes/block-supports/generated-classname.php

    r54873 r54874  
    1414 * @access private
    1515 *
    16  * @param  string $block_name Block Name.
     16 * @param string $block_name Block Name.
    1717 * @return string Generated classname.
    1818 */
     
    3131     * @since 5.6.0
    3232     *
    33      * @param string     $class_name The current applied classname.
    34      * @param string     $block_name The block name.
     33     * @param string $class_name The current applied classname.
     34     * @param string $block_name The block name.
    3535     */
    3636    $classname = apply_filters( 'block_default_classname', $classname, $block_name );
     
    4646 * @access private
    4747 *
    48  * @param  WP_Block_Type $block_type       Block Type.
    49  *
     48 * @param WP_Block_Type $block_type Block Type.
    5049 * @return array Block CSS classes and inline styles.
    5150 */
  • trunk/src/wp-includes/block-supports/spacing.php

    r54873 r54874  
    22/**
    33 * Spacing block support flag.
    4 
     4 *
    55 * For backwards compatibility, this remains separate to the dimensions.php
    66 * block support despite both belonging under a single panel in the editor.
Note: See TracChangeset for help on using the changeset viewer.