Changeset 56710 for trunk/src/wp-includes/blocks/calendar.php
- Timestamp:
- 09/26/2023 02:20:18 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/calendar.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/calendar.php
r55246 r56710 45 45 // Text color. 46 46 $preset_text_color = array_key_exists( 'textColor', $attributes ) ? "var:preset|color|{$attributes['textColor']}" : null; 47 $custom_text_color = _wp_array_get( $attributes, array( 'style', 'color', 'text' ), null );47 $custom_text_color = $attributes['style']['color']['text'] ?? null; 48 48 $color_block_styles['text'] = $preset_text_color ? $preset_text_color : $custom_text_color; 49 49 50 50 // Background Color. 51 51 $preset_background_color = array_key_exists( 'backgroundColor', $attributes ) ? "var:preset|color|{$attributes['backgroundColor']}" : null; 52 $custom_background_color = _wp_array_get( $attributes, array( 'style', 'color', 'background' ), null );52 $custom_background_color = $attributes['style']['color']['background'] ?? null; 53 53 $color_block_styles['background'] = $preset_background_color ? $preset_background_color : $custom_background_color; 54 54
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)