Changeset 57490 for trunk/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 01/30/2024 11:49:09 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r57352 r57490 948 948 $style_selectors = array(); 949 949 foreach ( $block_type->styles as $style ) { 950 // The style variation classname is duplicated in the selector to ensure that it overrides core block styles. 951 $style_selectors[ $style['name'] ] = static::append_to_selector( '.is-style-' . $style['name'] . '.is-style-' . $style['name'], static::$blocks_metadata[ $block_name ]['selector'] ); 950 $style_selectors[ $style['name'] ] = static::append_to_selector( '.is-style-' . $style['name'], static::$blocks_metadata[ $block_name ]['selector'] ); 952 951 } 953 952 static::$blocks_metadata[ $block_name ]['styleVariations'] = $style_selectors;
Note: See TracChangeset
for help on using the changeset viewer.