We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 517f69c commit acf25f6Copy full SHA for acf25f6
1 file changed
src/wp-includes/class-wp-block-supports.php
@@ -200,10 +200,10 @@ function get_block_wrapper_attributes( $extra_attributes = array() ) {
200
return implode( ' ', $classes );
201
},
202
'id' => function ( $new_attribute, $extra_attribute ) {
203
- return $extra_attribute !== '' ? $extra_attribute : $new_attribute;
+ return '' !== $extra_attribute ? $extra_attribute : $new_attribute;
204
205
'aria-label' => function ( $new_attribute, $extra_attribute ) {
206
207
208
);
209
0 commit comments