Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://develop.svn.wordpress.org/trunk"
},
"gutenberg": {
"sha": "e73c3c481db0650183f092af157f6e42efe9ee2d",
"sha": "4997026b75c922d8a6f77a03d72ed7cad04c7073",
"ghcrRepo": "WordPress/gutenberg/gutenberg-wp-develop-build"
Comment thread
t-hamano marked this conversation as resolved.
},
"engines": {
Expand Down
24 changes: 12 additions & 12 deletions src/wp-includes/assets/script-loader-packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
'wp-theme',
'wp-url'
),
'version' => '2be95e1c69e795bfc7c1'
'version' => 'e534a0f04643c4175bf3'
),
'block-editor.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -104,7 +104,7 @@
'wp-url',
'wp-warning'
),
'version' => '99803447584b3d7644e9'
'version' => '77626afea4a1cac03204'
),
'block-library.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -150,7 +150,7 @@
'import' => 'dynamic'
)
),
'version' => 'c9f222767e6c1a5ce0f0'
'version' => 'd24e08348f91bcfce1b7'
),
'block-serialization-default-parser.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -224,7 +224,7 @@
'wp-theme',
'wp-warning'
),
'version' => 'a5dafa2d4b6524d691ee'
'version' => 'd54375c07776a218ee99'
),
'compose.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -277,7 +277,7 @@
'wp-url',
'wp-warning'
),
'version' => 'f8cc2c428aaee6d1cb92'
'version' => 'c7a571126b75599516cf'
),
'customize-widgets.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -396,7 +396,7 @@
'import' => 'static'
)
),
'version' => '8473319428dab1c48631'
'version' => '4aeb2f3aa372be39adb2'
),
'edit-site.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -446,7 +446,7 @@
'import' => 'static'
)
),
'version' => 'a37c6fdd10740408f19d'
'version' => 'c33d508cfc124b1b3e2d'
),
'edit-widgets.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -487,7 +487,7 @@
'import' => 'static'
)
),
'version' => 'ecad0946a7d57d563d4d'
'version' => 'b6608ebdd73ddae5a250'
),
'editor.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -537,7 +537,7 @@
'import' => 'static'
)
),
'version' => '0a609157ffb795abc542'
'version' => 'cf691bc72eeac5643913'
),
'element.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -657,7 +657,7 @@
'wp-url',
'wp-warning'
),
'version' => 'cdee5bad0dbdf854a8de'
'version' => '8addf2ae46aa60243073'
),
'notices.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -794,7 +794,7 @@
'wp-keycodes',
'wp-private-apis'
),
'version' => '1a9947b38c18a34e1d2e'
'version' => '1c4b61567c93d486f1dc'
),
'router.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -883,7 +883,7 @@
'import' => 'dynamic'
)
),
'version' => '8f0937232c8009396479'
'version' => 'a16fcecc49ab54f868c2'
),
'url.js' => array(
'dependencies' => array(
Expand Down
10 changes: 5 additions & 5 deletions src/wp-includes/assets/script-modules-packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
'import' => 'static'
)
),
'version' => '0bebcdac79313f8ed604'
'version' => 'fb8db6c2fefd8246fa86'
),
'block-library/query/view.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -164,7 +164,7 @@
'import' => 'static'
)
),
'version' => '66dddf07eec0100be606'
'version' => '4b0281842169241e3d0e'
),
'connectors/index.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -211,7 +211,7 @@
'import' => 'static'
)
),
'version' => 'fb445bf351657f44f1d0'
'version' => '2fe152df83cad8d59403'
),
'core-abilities/index.js' => array(
'dependencies' => array(
Expand Down Expand Up @@ -342,7 +342,7 @@
'dependencies' => array(

),
'version' => 'd8cfb0be4d36afcd40f6'
'version' => '4d3627c45251ceb4f9a2'
),
'vips/loader.js' => array(
'dependencies' => array(
Expand All @@ -360,7 +360,7 @@
'dependencies' => array(

),
'version' => 'dfc83d3328327c911b78'
'version' => '685442d334b2d3e70832'
),
'workflow/index.js' => array(
'dependencies' => array(
Expand Down
60 changes: 60 additions & 0 deletions src/wp-includes/blocks/navigation-link.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,66 @@ function block_core_navigation_link_build_css_colors( $context, $attributes, $is
return $colors;
}

/**
* Build an array with CSS classes and inline styles defining the font sizes
* which will be applied to the navigation markup in the front-end.
*
* This function is no longer used internally and is kept only for backward
* compatibility with third-party code that may call it directly.
*
* @since 5.9.0
* @deprecated 7.0.0
*
* @param array $context Navigation block context.
* @return array Font size CSS classes and inline styles.
*/
function block_core_navigation_link_build_css_font_sizes( $context ) {
_deprecated_function( __FUNCTION__, '7.0.0' );

// CSS classes.
$font_sizes = array(
'css_classes' => array(),
'inline_styles' => '',
);

$has_named_font_size = array_key_exists( 'fontSize', $context );
$has_custom_font_size = isset( $context['style']['typography']['fontSize'] );

if ( $has_named_font_size ) {
// Add the font size class.
$font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] );
} elseif ( $has_custom_font_size ) {
// Add the custom font size inline style.
$font_sizes['inline_styles'] = sprintf(
'font-size: %s;',
wp_get_typography_font_size_value(
array(
'size' => $context['style']['typography']['fontSize'],
)
)
);
}

return $font_sizes;
}

/**
* Returns the top-level submenu SVG chevron icon.
*
* @since 5.9.0
* @deprecated 7.0.0 Use block_core_shared_navigation_render_submenu_icon() instead.
*
* @return string
*/
function block_core_navigation_link_render_submenu_icon() {
_deprecated_function(
__FUNCTION__,
'7.0.0',
'block_core_shared_navigation_render_submenu_icon()'
);
return block_core_shared_navigation_render_submenu_icon();
}

/**
* Decodes a url if it's encoded, returning the same url if not.
*
Expand Down
Loading
Loading