Skip to content

Commit c20ddd2

Browse files
committed
Formatting
1 parent 0281414 commit c20ddd2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/wp-includes/block-supports/border.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function wp_apply_border_support( $block_type, $block_attributes ) {
106106
$border_block_styles['color'] = $preset_border_color ? $preset_border_color : $custom_border_color;
107107
}
108108

109-
// Generate styles for individual border sides.
109+
// Generates styles for individual border sides.
110110
if ( $has_border_color_support || $has_border_width_support ) {
111111
foreach ( array( 'top', 'right', 'bottom', 'left' ) as $side ) {
112112
$border = _wp_array_get( $block_attributes, array( 'style', 'border', $side ), null );
@@ -119,7 +119,7 @@ function wp_apply_border_support( $block_type, $block_attributes ) {
119119
}
120120
}
121121

122-
// Collect classes and styles.
122+
// Collects classes and styles.
123123
$attributes = array();
124124
$styles = wp_style_engine_get_styles( array( 'border' => $border_block_styles ) );
125125

src/wp-includes/block-supports/colors.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ function wp_apply_colors_support( $block_type, $block_attributes ) {
8585
$color_block_styles = array();
8686

8787
// Text colors.
88-
// Check support for text colors.
8988
if ( $has_text_colors_support && ! wp_should_skip_block_supports_serialization( $block_type, 'color', 'text' ) ) {
9089
$preset_text_color = array_key_exists( 'textColor', $block_attributes ) ? "var:preset|color|{$block_attributes['textColor']}" : null;
9190
$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 ) {
10099
}
101100

102101
// Gradients.
103-
104102
if ( $has_gradients_support && ! wp_should_skip_block_supports_serialization( $block_type, 'color', 'gradients' ) ) {
105103
$preset_gradient_color = array_key_exists( 'gradient', $block_attributes ) ? "var:preset|gradient|{$block_attributes['gradient']}" : null;
106104
$custom_gradient_color = _wp_array_get( $block_attributes, array( 'style', 'color', 'gradient' ), null );

0 commit comments

Comments
 (0)