Skip to content

Commit d68e980

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

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
@@ -199,7 +199,7 @@ function get_block_wrapper_attributes( $extra_attributes = array() ) {
199199
$classes = array_unique( array_filter( array_map( 'sanitize_html_class', $classes ) ) );
200200
return implode( ' ', $classes );
201201
},
202-
'id' => function ( $new_attribute, $extra_attribute ) {
202+
'id' => static function ( $new_attribute, $extra_attribute ) {
203203
return '' !== $extra_attribute ? $extra_attribute : $new_attribute;
204204
},
205205
'aria-label' => function ( $new_attribute, $extra_attribute ) {

0 commit comments

Comments
 (0)