Update WordPress packages for 5.9.3.

Updated packages:

- @wordpress/block-directory@3.0.29
- @wordpress/block-library@6.0.28
- @wordpress/customize-widgets@2.0.29
- @wordpress/edit-post@5.0.29
- @wordpress/edit-site@3.0.29
- @wordpress/edit-widgets@3.1.24

Props mamaduka, jorgefilipecosta.
Fixes #55474.


git-svn-id: https://develop.svn.wordpress.org/branches/5.9@53030 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2022-03-30 11:28:30 +00:00
parent 1a569f3e87
commit beb96fe351
6 changed files with 42 additions and 39 deletions

48
package-lock.json generated
View File

@ -3723,9 +3723,9 @@
}
},
"@wordpress/block-directory": {
"version": "3.0.28",
"resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.0.28.tgz",
"integrity": "sha512-YvE5lesqqnJB7vX6xHM7ETwqtuWd5BGTPnZn64BHNTZT1PEZGqLZklCfKkaTQ5EQryaZG9vgFDE3VBi6zMdQ0w==",
"version": "3.0.29",
"resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.0.29.tgz",
"integrity": "sha512-cdxjnlynEL1R0GZevQLB3o7/A0KQaqmM/CIvDPLItHG8mC9IbKtpgzHJdHJnBipQCFnP63bL5ax/sqv/m+UNUg==",
"requires": {
"@babel/runtime": "^7.16.0",
"@wordpress/a11y": "^3.2.4",
@ -3736,7 +3736,7 @@
"@wordpress/compose": "^5.0.7",
"@wordpress/core-data": "^4.0.11",
"@wordpress/data": "^6.1.5",
"@wordpress/edit-post": "^5.0.28",
"@wordpress/edit-post": "^5.0.29",
"@wordpress/editor": "^12.0.22",
"@wordpress/element": "^4.0.4",
"@wordpress/hooks": "^3.2.2",
@ -3797,9 +3797,9 @@
}
},
"@wordpress/block-library": {
"version": "6.0.27",
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-6.0.27.tgz",
"integrity": "sha512-E6gOMjdYKbXO5WpsGMqAYov8LC8po/8TS3VuWvAAFCGJXLNvxL/G5j5b+uj3FqxEYJNYZvCfwtjE8WeoKWYVDg==",
"version": "6.0.28",
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-6.0.28.tgz",
"integrity": "sha512-GnHq4BiAq9+xABfQroJA0ScXBIuB+rWTblXjY6buf5TRIJQuB0S4Tzb4/JwySxVeaY1eTB0APjoErPCWKUpTkw==",
"requires": {
"@babel/runtime": "^7.16.0",
"@wordpress/a11y": "^3.2.4",
@ -3978,14 +3978,14 @@
}
},
"@wordpress/customize-widgets": {
"version": "2.0.28",
"resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-2.0.28.tgz",
"integrity": "sha512-YE29hGdN9HiROGGh7BuPVMWCgON8HnHyrr4KtR9+NhWrkNHaushG6p/DNp1X4cqF197C0VyNMXv788/LefSzAg==",
"version": "2.0.29",
"resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-2.0.29.tgz",
"integrity": "sha512-MdpD40AzVzjjNSvLHrAGuUA9MnMqyj13BmXkAJbzG5Xpeqcnm9o8lfcw9VA8kwurajvXheIpL7NpwEVvGcX8uQ==",
"requires": {
"@babel/runtime": "^7.16.0",
"@wordpress/a11y": "^3.2.4",
"@wordpress/block-editor": "^8.0.18",
"@wordpress/block-library": "^6.0.27",
"@wordpress/block-library": "^6.0.28",
"@wordpress/blocks": "^11.1.5",
"@wordpress/components": "^19.2.3",
"@wordpress/compose": "^5.0.7",
@ -4130,15 +4130,15 @@
}
},
"@wordpress/edit-post": {
"version": "5.0.28",
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-5.0.28.tgz",
"integrity": "sha512-H+o2l/DoChrfOifxmiCxtK1HKWndMUeTExMiNpdV8ltY4owoojcoffxU9N4PyeeJ+mi++bY61KWvm+DB2HeDtg==",
"version": "5.0.29",
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-5.0.29.tgz",
"integrity": "sha512-46eymSJgDnYxkGF3cCVjNgRNmhit+F/sy6ct35Bro9bfWBEj4pj7LPnFuoXkESeT3xgdEjQi6hGPKrjCWVt1bg==",
"requires": {
"@babel/runtime": "^7.16.0",
"@wordpress/a11y": "^3.2.4",
"@wordpress/api-fetch": "^5.2.7",
"@wordpress/block-editor": "^8.0.18",
"@wordpress/block-library": "^6.0.27",
"@wordpress/block-library": "^6.0.28",
"@wordpress/blocks": "^11.1.5",
"@wordpress/components": "^19.2.3",
"@wordpress/compose": "^5.0.7",
@ -4175,15 +4175,15 @@
}
},
"@wordpress/edit-site": {
"version": "3.0.28",
"resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-3.0.28.tgz",
"integrity": "sha512-u3A7CIV2iRlYQ4Iywnt58ahf3I+Quk38m3spi/Nurht2w1IWWHVwKoravezf53XK0ZrP05F5JmHmuKDVddgVHw==",
"version": "3.0.29",
"resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-3.0.29.tgz",
"integrity": "sha512-HPVKSUMlPGi17Uu9QPVTKLPNi3kD5jVq6uwWrhQJxHaG41uObp2nXxvyJWfaRN8O0xHlcQZifyVO/63q3v0zEQ==",
"requires": {
"@babel/runtime": "^7.16.0",
"@wordpress/a11y": "^3.2.4",
"@wordpress/api-fetch": "^5.2.7",
"@wordpress/block-editor": "^8.0.18",
"@wordpress/block-library": "^6.0.27",
"@wordpress/block-library": "^6.0.28",
"@wordpress/blocks": "^11.1.5",
"@wordpress/components": "^19.2.3",
"@wordpress/compose": "^5.0.7",
@ -4216,15 +4216,15 @@
}
},
"@wordpress/edit-widgets": {
"version": "3.1.23",
"resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-3.1.23.tgz",
"integrity": "sha512-YwQu4EV5H961iLwMtLSagoawtCbRwg5rh81RDs892oetXHBE65S9PLzhxR/bq7yJFQi/iRJgyXUnawkpR54krA==",
"version": "3.1.24",
"resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-3.1.24.tgz",
"integrity": "sha512-HXSE8XcMKE90NDdHwHs7EdnrDJgcRhxhFPWxDwHu4nASXsv7scCvH/vI2lOeyX5X7iZE9ZXykGseG/2zZfl5Tw==",
"requires": {
"@babel/runtime": "^7.16.0",
"@wordpress/a11y": "^3.2.4",
"@wordpress/api-fetch": "^5.2.7",
"@wordpress/block-editor": "^8.0.18",
"@wordpress/block-library": "^6.0.27",
"@wordpress/block-library": "^6.0.28",
"@wordpress/blocks": "^11.1.5",
"@wordpress/components": "^19.2.3",
"@wordpress/compose": "^5.0.7",
@ -7747,7 +7747,7 @@
},
"browserify-aes": {
"version": "1.2.0",
"resolved": "http://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz",
"resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz",
"integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==",
"dev": true,
"requires": {

View File

@ -82,24 +82,24 @@
"@wordpress/api-fetch": "5.2.7",
"@wordpress/autop": "3.2.3",
"@wordpress/blob": "3.2.2",
"@wordpress/block-directory": "3.0.28",
"@wordpress/block-directory": "3.0.29",
"@wordpress/block-editor": "8.0.18",
"@wordpress/block-library": "6.0.27",
"@wordpress/block-library": "6.0.28",
"@wordpress/block-serialization-default-parser": "4.2.3",
"@wordpress/blocks": "11.1.5",
"@wordpress/components": "19.2.3",
"@wordpress/compose": "5.0.7",
"@wordpress/core-data": "4.0.11",
"@wordpress/customize-widgets": "2.0.28",
"@wordpress/customize-widgets": "2.0.29",
"@wordpress/data": "6.1.5",
"@wordpress/data-controls": "2.2.9",
"@wordpress/date": "4.2.3",
"@wordpress/deprecated": "3.2.3",
"@wordpress/dom": "3.2.7",
"@wordpress/dom-ready": "3.2.3",
"@wordpress/edit-post": "5.0.28",
"@wordpress/edit-site": "3.0.28",
"@wordpress/edit-widgets": "3.1.23",
"@wordpress/edit-post": "5.0.29",
"@wordpress/edit-site": "3.0.29",
"@wordpress/edit-widgets": "3.1.24",
"@wordpress/editor": "12.0.22",
"@wordpress/element": "4.0.4",
"@wordpress/escape-html": "2.2.3",

File diff suppressed because one or more lines are too long

View File

@ -23,7 +23,7 @@ function render_block_core_archives( $attributes ) {
$class .= ' wp-block-archives-dropdown';
$dropdown_id = esc_attr( uniqid( 'wp-block-archives-' ) );
$dropdown_id = wp_unique_id( 'wp-block-archives-' );
$title = __( 'Archives' );
/** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */

View File

@ -513,7 +513,7 @@ function render_block_core_navigation( $attributes, $content, $block ) {
)
);
$modal_unique_id = uniqid();
$modal_unique_id = wp_unique_id( 'modal-' );
// Determine whether or not navigation elements should be wrapped in the markup required to make it responsive,
// return early if they don't.
@ -538,12 +538,12 @@ function render_block_core_navigation( $attributes, $content, $block ) {
);
$responsive_container_markup = sprintf(
'<button aria-haspopup="true" aria-label="%3$s" class="%6$s" data-micromodal-trigger="modal-%1$s"><svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-hidden="true" focusable="false"><rect x="4" y="7.5" width="16" height="1.5" /><rect x="4" y="15" width="16" height="1.5" /></svg></button>
<div class="%5$s" style="%7$s" id="modal-%1$s">
'<button aria-haspopup="true" aria-label="%3$s" class="%6$s" data-micromodal-trigger="%1$s"><svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-hidden="true" focusable="false"><rect x="4" y="7.5" width="16" height="1.5" /><rect x="4" y="15" width="16" height="1.5" /></svg></button>
<div class="%5$s" style="%7$s" id="%1$s">
<div class="wp-block-navigation__responsive-close" tabindex="-1" data-micromodal-close>
<div class="wp-block-navigation__responsive-dialog" aria-label="%8$s">
<button aria-label="%4$s" data-micromodal-close class="wp-block-navigation__responsive-container-close"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" role="img" aria-hidden="true" focusable="false"><path d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"></path></svg></button>
<div class="wp-block-navigation__responsive-container-content" id="modal-%1$s-content">
<div class="wp-block-navigation__responsive-container-content" id="%1$s-content">
%2$s
</div>
</div>

View File

@ -73,6 +73,7 @@ function render_block_core_search( $attributes ) {
if ( $show_button ) {
$button_internal_markup = '';
$button_classes = $color_classes;
$aria_label = '';
if ( ! $is_button_inside ) {
$button_classes .= ' ' . $border_color_classes;
@ -82,6 +83,7 @@ function render_block_core_search( $attributes ) {
$button_internal_markup = wp_kses_post( $attributes['buttonText'] );
}
} else {
$aria_label = sprintf( 'aria-label="%s"', esc_attr( wp_strip_all_tags( $attributes['label'] ) ) );
$button_classes .= ' has-icon';
$button_internal_markup =
'<svg id="search-icon" class="search-icon" viewBox="0 0 24 24" width="24" height="24">
@ -90,9 +92,10 @@ function render_block_core_search( $attributes ) {
}
$button_markup = sprintf(
'<button type="submit" class="wp-block-search__button %s" %s>%s</button>',
'<button type="submit" class="wp-block-search__button %s" %s %s>%s</button>',
esc_attr( $button_classes ),
$inline_styles['button'],
$aria_label,
$button_internal_markup
);
}