Changeset 53076 for trunk/src/wp-includes/block-supports/colors.php
- Timestamp:
- 04/05/2022 12:06:48 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/block-supports/colors.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/colors.php
r52069 r53076 76 76 if ( 77 77 is_array( $color_support ) && 78 array_key_exists( '__experimentalSkipSerialization', $color_support ) && 79 $color_support['__experimentalSkipSerialization'] 78 wp_should_skip_block_supports_serialization( $block_type, 'color' ) 80 79 ) { 81 80 return array(); … … 90 89 // Text colors. 91 90 // Check support for text colors. 92 if ( $has_text_colors_support ) {91 if ( $has_text_colors_support && ! wp_should_skip_block_supports_serialization( $block_type, 'color', 'text' ) ) { 93 92 $has_named_text_color = array_key_exists( 'textColor', $block_attributes ); 94 93 $has_custom_text_color = isset( $block_attributes['style']['color']['text'] ); … … 107 106 108 107 // Background colors. 109 if ( $has_background_colors_support ) {108 if ( $has_background_colors_support && ! wp_should_skip_block_supports_serialization( $block_type, 'color', 'background' ) ) { 110 109 $has_named_background_color = array_key_exists( 'backgroundColor', $block_attributes ); 111 110 $has_custom_background_color = isset( $block_attributes['style']['color']['background'] ); … … 124 123 125 124 // Gradients. 126 if ( $has_gradients_support ) {125 if ( $has_gradients_support && ! wp_should_skip_block_supports_serialization( $block_type, 'color', 'gradients' ) ) { 127 126 $has_named_gradient = array_key_exists( 'gradient', $block_attributes ); 128 127 $has_custom_gradient = isset( $block_attributes['style']['color']['gradient'] );
Note: See TracChangeset
for help on using the changeset viewer.