Skip to content

Commit 810d5ac

Browse files
Add static modifier for aria-label callback function
Co-authored-by: Weston Ruter <[email protected]>
1 parent d68e980 commit 810d5ac

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
@@ -202,7 +202,7 @@ function get_block_wrapper_attributes( $extra_attributes = array() ) {
202202
'id' => static function ( $new_attribute, $extra_attribute ) {
203203
return '' !== $extra_attribute ? $extra_attribute : $new_attribute;
204204
},
205-
'aria-label' => function ( $new_attribute, $extra_attribute ) {
205+
'aria-label' => static function ( $new_attribute, $extra_attribute ) {
206206
return '' !== $extra_attribute ? $extra_attribute : $new_attribute;
207207
},
208208
);

0 commit comments

Comments
 (0)