Skip to content

Commit

Permalink
fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Sep 20, 2023
1 parent 3d9aa44 commit 8584c59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wp-includes/block-supports/dimensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function wp_apply_dimensions_support( $block_type, $block_attributes ) { // phpc
if ( $has_min_height_support && ! $skip_min_height ) {
$dimensions_block_styles['minHeight'] = $block_styles['dimensions']['minHeight'] ?? null;
}
$styles = gutenberg_style_engine_get_styles( array( 'dimensions' => $dimensions_block_styles ) );
$styles = wp_style_engine_get_styles( array( 'dimensions' => $dimensions_block_styles ) );

if ( ! empty( $styles['css'] ) ) {
$attributes['style'] = $styles['css'];
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/block-supports/spacing.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function wp_apply_spacing_support( $block_type, $block_attributes ) {
if ( $has_margin_support && ! $skip_margin ) {
$spacing_block_styles['margin'] = $block_styles['spacing']['margin'] ?? null;
}
$styles = gutenberg_style_engine_get_styles( array( 'spacing' => $spacing_block_styles ) );
$styles = wp_style_engine_get_styles( array( 'spacing' => $spacing_block_styles ) );

if ( ! empty( $styles['css'] ) ) {
$attributes['style'] = $styles['css'];
Expand Down

0 comments on commit 8584c59

Please sign in to comment.