Skip to content

Commit

Permalink
Continue the loop when generating classnames because we've added the …
Browse files Browse the repository at this point in the history
…classname, and besides, get_slug_from_preset_value only works on a string. (#60153)

Co-authored-by: ramonjd <[email protected]>
Co-authored-by: andrewserong <[email protected]>
  • Loading branch information
3 people authored Mar 25, 2024
1 parent c2d3978 commit bae7201
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/style-engine/class-wp-style-engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ protected static function get_classnames( $style_value, $style_definition ) {
foreach ( $style_definition['classnames'] as $classname => $property_key ) {
if ( true === $property_key ) {
$classnames[] = $classname;
continue;
}

$slug = static::get_slug_from_preset_value( $style_value, $property_key );
Expand Down

0 comments on commit bae7201

Please sign in to comment.