diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/block-supports/generated-classname.php --- a/wp/wp-includes/block-supports/generated-classname.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/block-supports/generated-classname.php Fri Sep 05 18:40:08 2025 +0200 @@ -7,13 +7,13 @@ */ /** - * Get the generated classname from a given block name. + * Gets the generated classname from a given block name. * * @since 5.6.0 * * @access private * - * @param string $block_name Block Name. + * @param string $block_name Block Name. * @return string Generated classname. */ function wp_get_block_default_classname( $block_name ) { @@ -30,8 +30,8 @@ * * @since 5.6.0 * - * @param string $class_name The current applied classname. - * @param string $block_name The block name. + * @param string $class_name The current applied classname. + * @param string $block_name The block name. */ $classname = apply_filters( 'block_default_classname', $classname, $block_name ); @@ -39,19 +39,18 @@ } /** - * Add the generated classnames to the output. + * Adds the generated classnames to the output. * * @since 5.6.0 * * @access private * - * @param WP_Block_Type $block_type Block Type. - * + * @param WP_Block_Type $block_type Block Type. * @return array Block CSS classes and inline styles. */ function wp_apply_generated_classname_support( $block_type ) { $attributes = array(); - $has_generated_classname_support = block_has_support( $block_type, array( 'className' ), true ); + $has_generated_classname_support = block_has_support( $block_type, 'className', true ); if ( $has_generated_classname_support ) { $block_classname = wp_get_block_default_classname( $block_type->name );