Skip to content

Commit

Permalink
Remove unnecessary parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Oct 10, 2022
1 parent 98bfa3b commit f242a2f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions lib/block-supports/typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ function gutenberg_apply_typography_support( $block_type, $block_attributes ) {
$custom_font_size = isset( $block_attributes['style']['typography']['fontSize'] ) ? $block_attributes['style']['typography']['fontSize'] : null;
$typography_block_styles['fontSize'] = $preset_font_size ? $preset_font_size : gutenberg_get_typography_font_size_value(
array(
'size' => $custom_font_size,
'fluid' => true,
'size' => $custom_font_size,
)
);
}
Expand Down
3 changes: 1 addition & 2 deletions packages/block-library/src/navigation-link/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ function block_core_navigation_link_build_css_font_sizes( $context ) {
'font-size: %s;',
gutenberg_get_typography_font_size_value(
array(
'size' => $context['style']['typography']['fontSize'],
'fluid' => true,
'size' => $context['style']['typography']['fontSize'],
)
)
);
Expand Down
3 changes: 1 addition & 2 deletions packages/block-library/src/navigation-submenu/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ function block_core_navigation_submenu_build_css_font_sizes( $context ) {
'font-size: %s;',
gutenberg_get_typography_font_size_value(
array(
'size' => $context['style']['typography']['fontSize'],
'fluid' => true,
'size' => $context['style']['typography']['fontSize'],
)
)
);
Expand Down
3 changes: 1 addition & 2 deletions packages/block-library/src/page-list/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ function block_core_page_list_build_css_font_sizes( $context ) {
'font-size: %s;',
gutenberg_get_typography_font_size_value(
array(
'size' => $context['style']['typography']['fontSize'],
'fluid' => true,
'size' => $context['style']['typography']['fontSize'],
)
)
);
Expand Down
3 changes: 1 addition & 2 deletions packages/block-library/src/search/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,7 @@ function get_typography_styles_for_block_core_search( $attributes ) {
'font-size: %s;',
gutenberg_get_typography_font_size_value(
array(
'size' => esc_attr( $attributes['style']['typography']['fontSize'] ),
'fluid' => true,
'size' => esc_attr( $attributes['style']['typography']['fontSize'] ),
)
)
);
Expand Down

0 comments on commit f242a2f

Please sign in to comment.