Changeset 50488
- Timestamp:
- 03/03/2021 11:29:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/colors.php
r49580 r50488 16 16 $color_support = false; 17 17 if ( property_exists( $block_type, 'supports' ) ) { 18 $color_support = _wp_array_get( $block_type->supports, array( ' __experimentalColor' ), false );18 $color_support = _wp_array_get( $block_type->supports, array( 'color' ), false ); 19 19 } 20 20 $has_text_colors_support = true === $color_support || ( is_array( $color_support ) && _wp_array_get( $color_support, array( 'text' ), true ) ); … … 64 64 */ 65 65 function wp_apply_colors_support( $block_type, $block_attributes ) { 66 $color_support = _wp_array_get( $block_type->supports, array( ' __experimentalColor' ), false );66 $color_support = _wp_array_get( $block_type->supports, array( 'color' ), false ); 67 67 $has_text_colors_support = true === $color_support || ( is_array( $color_support ) && _wp_array_get( $color_support, array( 'text' ), true ) ); 68 68 $has_background_colors_support = true === $color_support || ( is_array( $color_support ) && _wp_array_get( $color_support, array( 'background' ), true ) ); 69 $has_link_colors_support = _wp_array_get( $color_support, array( 'link Color' ), false );69 $has_link_colors_support = _wp_array_get( $color_support, array( 'link' ), false ); 70 70 $has_gradients_support = _wp_array_get( $color_support, array( 'gradients' ), false ); 71 71 $classes = array();
Note: See TracChangeset
for help on using the changeset viewer.