Editor: Change gutenberg_get_typography_font_size_value() calls to wp_get_typography_font_size_value().

Merged Gutenberg functions should be prefixed with `wp_`.

Follow-up to [54483].

Props spacedmonkey.
See #56467.

git-svn-id: https://develop.svn.wordpress.org/trunk@54486 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
David Baumwald 2022-10-11 15:36:04 +00:00
parent 14e51e1f16
commit a11ac1e13f
4 changed files with 4 additions and 4 deletions

View File

@ -100,7 +100,7 @@ function block_core_navigation_link_build_css_font_sizes( $context ) {
// Add the custom font size inline style.
$font_sizes['inline_styles'] = sprintf(
'font-size: %s;',
gutenberg_get_typography_font_size_value(
wp_get_typography_font_size_value(
array(
'size' => $context['style']['typography']['fontSize'],
)

View File

@ -100,7 +100,7 @@ function block_core_navigation_submenu_build_css_font_sizes( $context ) {
// Add the custom font size inline style.
$font_sizes['inline_styles'] = sprintf(
'font-size: %s;',
gutenberg_get_typography_font_size_value(
wp_get_typography_font_size_value(
array(
'size' => $context['style']['typography']['fontSize'],
)

View File

@ -121,7 +121,7 @@ function block_core_page_list_build_css_font_sizes( $context ) {
// Add the custom font size inline style.
$font_sizes['inline_styles'] = sprintf(
'font-size: %s;',
gutenberg_get_typography_font_size_value(
wp_get_typography_font_size_value(
array(
'size' => $context['style']['typography']['fontSize'],
)

View File

@ -444,7 +444,7 @@ function get_typography_styles_for_block_core_search( $attributes ) {
if ( ! empty( $attributes['style']['typography']['fontSize'] ) ) {
$typography_styles[] = sprintf(
'font-size: %s;',
gutenberg_get_typography_font_size_value(
wp_get_typography_font_size_value(
array(
'size' => $attributes['style']['typography']['fontSize'],
)