Skip to content

Commit 40caa8e

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

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
@@ -182,7 +182,7 @@ function get_block_wrapper_attributes( $extra_attributes = array() ) {
182182
// Attribute values are concatenated or overridden depending on the attribute type.
183183
// This is hardcoded on purpose, as we only support a fixed list of attributes.
184184
$attribute_merge_callbacks = array(
185-
'style' => function ( $new_attribute, $extra_attribute ) {
185+
'style' => static function ( $new_attribute, $extra_attribute ) {
186186
$styles = array_filter(
187187
array(
188188
rtrim( trim( $extra_attribute ), ';' ),

0 commit comments

Comments
 (0)