- Timestamp:
- 06/14/2024 09:03:40 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/block-style-variations.php
r58394 r58413 250 250 * need to have their name set to the kebab case version of their title. 251 251 */ 252 $variation_name = $have_named_variations ? $key : _wp_to_kebab_case( $variation['title']);252 $variation_name = $have_named_variations ? $key : ( $variation['slug'] ?? _wp_to_kebab_case( $variation['title'] ) ); 253 253 254 254 foreach ( $supported_blocks as $block_type ) { … … 442 442 * need to have their name set to the kebab case version of their title. 443 443 */ 444 $variation_name = $have_named_variations ? $key : _wp_to_kebab_case( $variation['title']);444 $variation_name = $have_named_variations ? $key : ( $variation['slug'] ?? _wp_to_kebab_case( $variation['title'] ) ); 445 445 $variation_label = $variation['title'] ?? $variation_name; 446 446
Note: See TracChangeset
for help on using the changeset viewer.