Skip to content

Commit

Permalink
Hi Linter!
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Aug 27, 2021
1 parent 9ecbde6 commit 209dd1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/block-supports/dimensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function gutenberg_register_dimensions_support( $block_type ) {
*
* @return array Block dimensions CSS classes and inline styles.
*/
function gutenberg_apply_dimensions_support( $block_type, $block_attributes ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
function gutenberg_apply_dimensions_support( $block_type, $block_attributes ) {
if ( gutenberg_skip_dimensions_serialization( $block_type ) ) {
return array();
}
Expand All @@ -61,7 +61,7 @@ function gutenberg_apply_dimensions_support( $block_type, $block_attributes ) {
}
}

// Minimum height support.
// Minimum height.
$has_min_height_support = gutenberg_block_has_support( $block_type, array( '__experimentalDimensions', 'minHeight' ), false );

if ( $has_min_height_support ) {
Expand Down
4 changes: 2 additions & 2 deletions lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class WP_Theme_JSON_Gutenberg {
'text' => null,
),
'dimensions' => array(
'height' => null,
'height' => null,
'minHeight' => null,
),
'spacing' => array(
Expand Down Expand Up @@ -99,7 +99,7 @@ class WP_Theme_JSON_Gutenberg {
),
'custom' => null,
'dimensions' => array(
'customHeight' => null,
'customHeight' => null,
'customMinHeight' => null,
),
'layout' => array(
Expand Down
3 changes: 2 additions & 1 deletion lib/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@
]
},
"dimensions": {
"customHeight": false
"customHeight": false,
"customMinHeight": false
},
"spacing": {
"customMargin": false,
Expand Down

0 comments on commit 209dd1c

Please sign in to comment.