Editor: Update block editor packages for WordPress 5.9.1.

The following packages were updated:

- @wordpress/block-directory@3.0.27
- @wordpress/block-editor@8.0.17
- @wordpress/block-library@6.0.26
- @wordpress/components@19.2.3
- @wordpress/core-data@4.0.10
- @wordpress/customize-widgets@2.0.27
- @wordpress/e2e-tests@2.5.18
- @wordpress/edit-post@5.0.27
- @wordpress/edit-site@3.0.27
- @wordpress/edit-widgets@3.1.22
- @wordpress/editor@12.0.21
- @wordpress/format-library@3.0.23
- @wordpress/interface@4.1.18
- @wordpress/list-reusable-blocks@3.0.20
- @wordpress/nux@5.0.20
- @wordpress/reusable-blocks@3.0.23
- @wordpress/server-side-render@3.0.20
- @wordpress/widgets@2.0.23

Props Mamaduka.
See #55179.


git-svn-id: https://develop.svn.wordpress.org/trunk@52765 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2022-02-17 19:16:57 +00:00
parent 4f18e39896
commit 5c845102ac
8 changed files with 169 additions and 163 deletions
File diff suppressed because one or more lines are too long
+5
View File
@@ -173,6 +173,11 @@ function block_core_page_list_render_nested_page_list( $open_submenus_on_click,
}
}
$front_page_id = (int) get_option( 'page_on_front' );
if ( (int) $page['page_id'] === $front_page_id ) {
$css_class .= ' menu-item-home';
}
$title = wp_kses( $page['title'], wp_kses_allowed_html( 'post' ) );
$aria_label = sprintf(
/* translators: Accessibility text. %s: Parent page title. */
+6 -4
View File
@@ -43,16 +43,18 @@ function render_block_core_search( $attributes ) {
// Border color classes need to be applied to the elements that have a border color.
$border_color_classes = get_border_color_classes_for_block_core_search( $attributes );
$label_inner_html = empty( $attributes['label'] ) ? __( 'Search' ) : wp_kses_post( $attributes['label'] );
$label_markup = sprintf(
'<label for="%1$s" class="wp-block-search__label screen-reader-text">%2$s</label>',
$input_id,
empty( $attributes['label'] ) ? __( 'Search' ) : esc_html( $attributes['label'] )
esc_attr( $input_id ),
$label_inner_html
);
if ( $show_label && ! empty( $attributes['label'] ) ) {
$label_markup = sprintf(
'<label for="%1$s" class="wp-block-search__label">%2$s</label>',
$input_id,
esc_html( $attributes['label'] )
$label_inner_html
);
}
@@ -77,7 +79,7 @@ function render_block_core_search( $attributes ) {
}
if ( ! $use_icon_button ) {
if ( ! empty( $attributes['buttonText'] ) ) {
$button_internal_markup = esc_html( $attributes['buttonText'] );
$button_internal_markup = wp_kses_post( $attributes['buttonText'] );
}
} else {
$button_classes .= ' has-icon';
+1 -1
View File
@@ -14,7 +14,7 @@
*/
function render_block_core_site_logo( $attributes ) {
$adjust_width_height_filter = function ( $image ) use ( $attributes ) {
if ( empty( $attributes['width'] ) || empty( $image ) ) {
if ( empty( $attributes['width'] ) || empty( $image ) || ! $image[1] || ! $image[2] ) {
return $image;
}
$height = (float) $attributes['width'] / ( (float) $image[1] / (float) $image[2] );
-1
View File
@@ -35,7 +35,6 @@ function render_block_core_site_title( $attributes ) {
);
if ( '_blank' === $attributes['linkTarget'] ) {
$link_attrs[] = 'target="_blank"';
$link_attrs[] = 'aria-label="' . esc_attr__( '(opens in a new tab)' ) . '"';
}
$site_title = sprintf( '<a %1$s>%2$s</a>', implode( ' ', $link_attrs ), $site_title );
}
+3 -3
View File
@@ -7,11 +7,11 @@
"textdomain": "default",
"attributes": {
"height": {
"type": "number",
"default": 100
"type": "string",
"default": "100px"
},
"width": {
"type": "number"
"type": "string"
}
},
"usesContext": [ "orientation" ],