diff --git a/src/wp-includes/block-supports/border.php b/src/wp-includes/block-supports/border.php index 4eb509247d84a..fafa1cc1f3acf 100644 --- a/src/wp-includes/block-supports/border.php +++ b/src/wp-includes/block-supports/border.php @@ -106,7 +106,7 @@ function wp_apply_border_support( $block_type, $block_attributes ) { $border_block_styles['color'] = $preset_border_color ? $preset_border_color : $custom_border_color; } - // Generate styles for individual border sides. + // Generates styles for individual border sides. if ( $has_border_color_support || $has_border_width_support ) { foreach ( array( 'top', 'right', 'bottom', 'left' ) as $side ) { $border = _wp_array_get( $block_attributes, array( 'style', 'border', $side ), null ); @@ -119,7 +119,7 @@ function wp_apply_border_support( $block_type, $block_attributes ) { } } - // Collect classes and styles. + // Collects classes and styles. $attributes = array(); $styles = wp_style_engine_get_styles( array( 'border' => $border_block_styles ) ); diff --git a/src/wp-includes/block-supports/colors.php b/src/wp-includes/block-supports/colors.php index b1a2c3d0240c7..91ca2be14b7e2 100644 --- a/src/wp-includes/block-supports/colors.php +++ b/src/wp-includes/block-supports/colors.php @@ -85,7 +85,6 @@ function wp_apply_colors_support( $block_type, $block_attributes ) { $color_block_styles = array(); // Text colors. - // Check support for text colors. if ( $has_text_colors_support && ! wp_should_skip_block_supports_serialization( $block_type, 'color', 'text' ) ) { $preset_text_color = array_key_exists( 'textColor', $block_attributes ) ? "var:preset|color|{$block_attributes['textColor']}" : null; $custom_text_color = _wp_array_get( $block_attributes, array( 'style', 'color', 'text' ), null ); @@ -100,7 +99,6 @@ function wp_apply_colors_support( $block_type, $block_attributes ) { } // Gradients. - if ( $has_gradients_support && ! wp_should_skip_block_supports_serialization( $block_type, 'color', 'gradients' ) ) { $preset_gradient_color = array_key_exists( 'gradient', $block_attributes ) ? "var:preset|gradient|{$block_attributes['gradient']}" : null; $custom_gradient_color = _wp_array_get( $block_attributes, array( 'style', 'color', 'gradient' ), null );