mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
14e51e1f16
commit
a11ac1e13f
@ -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'],
|
||||
)
|
||||
|
||||
@ -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'],
|
||||
)
|
||||
|
||||
@ -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'],
|
||||
)
|
||||
|
||||
@ -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'],
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user