--- a/wp/wp-includes/block-supports/custom-classname.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/block-supports/custom-classname.php Fri Sep 05 18:40:08 2025 +0200
@@ -15,7 +15,7 @@
* @param WP_Block_Type $block_type Block Type.
*/
function wp_register_custom_classname_support( $block_type ) {
- $has_custom_classname_support = block_has_support( $block_type, array( 'customClassName' ), true );
+ $has_custom_classname_support = block_has_support( $block_type, 'customClassName', true );
if ( $has_custom_classname_support ) {
if ( ! $block_type->attributes ) {
@@ -31,7 +31,7 @@
}
/**
- * Add the custom classnames to the output.
+ * Adds the custom classnames to the output.
*
* @since 5.6.0
* @access private
@@ -42,7 +42,7 @@
* @return array Block CSS classes and inline styles.
*/
function wp_apply_custom_classname_support( $block_type, $block_attributes ) {
- $has_custom_classname_support = block_has_support( $block_type, array( 'customClassName' ), true );
+ $has_custom_classname_support = block_has_support( $block_type, 'customClassName', true );
$attributes = array();
if ( $has_custom_classname_support ) {
$has_custom_classnames = array_key_exists( 'className', $block_attributes );