Skip to content

Commit 0ea5ebf

Browse files
Add static modifier for class callback function
Co-authored-by: Weston Ruter <[email protected]>
1 parent 40caa8e commit 0ea5ebf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/class-wp-block-supports.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function get_block_wrapper_attributes( $extra_attributes = array() ) {
191191
);
192192
return safecss_filter_attr( implode( ';', array_filter( $styles ) ) );
193193
},
194-
'class' => function ( $new_attribute, $extra_attribute ) {
194+
'class' => static function ( $new_attribute, $extra_attribute ) {
195195
$classes = array_merge(
196196
wp_parse_list( $extra_attribute ),
197197
wp_parse_list( $new_attribute )

0 commit comments

Comments
 (0)