Skip to content

Commit

Permalink
Changed expression to yoda style I did
Browse files Browse the repository at this point in the history
  • Loading branch information
pbking committed Jun 14, 2023
1 parent 508b270 commit 3838305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/categories/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function render_block_core_categories( $attributes ) {
$list_style_type = $attributes['listStyleType'];
}
$attribute_array = array( 'class' => "wp-block-categories-{$type}" );
if ( ! empty( $list_style_type ) && $list_style_type !== 'inherit' ) {
if ( ! empty( $list_style_type ) && 'inherit' !== $list_style_type ) {
$attribute_array['style'] = "list-style-type: {$list_style_type}";
}
$wrapper_attributes = get_block_wrapper_attributes( $attribute_array );
Expand Down

0 comments on commit 3838305

Please sign in to comment.