mirror of
git://develop.git.wordpress.org/
synced 2025-04-11 23:52:01 +02:00
Editor: Bump @wordpress
packages for 6.0.3.
Package updates for bug fixes: * @wordpress/block-directory: 3.4.15 * @wordpress/block-library: 7.3.15 * @wordpress/customize-widgets: 3.3.15 * @wordpress/edit-post: 6.3.15 * @wordpress/edit-site: 4.3.15 * @wordpress/edit-widgets: 4.3.15 * @wordpress/widgets: 2.4.11 git-svn-id: https://develop.svn.wordpress.org/branches/6.0@54543 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a058ffd9b8
commit
863c5c46da
56
package-lock.json
generated
56
package-lock.json
generated
@ -3996,9 +3996,9 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/block-directory": {
|
||||
"version": "3.4.14",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.4.14.tgz",
|
||||
"integrity": "sha512-IGvHEZ15Q3AdnulU2EoMlNbrf6rU+LJkLWObwdtMCUsge2r6xC2wQTpPveTNIIn4j7YgTm4B2EqkBi+ujvs7dw==",
|
||||
"version": "3.4.15",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.4.15.tgz",
|
||||
"integrity": "sha512-RLp1HoiwYdH5lLCJaI9zrfz8Nem/FOWi7MVv35LyLLgWO2XMcMPPxnJQYEyq6kYqG+dpO8pab5qUJNG/3FvU4Q==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.6.1",
|
||||
@ -4009,7 +4009,7 @@
|
||||
"@wordpress/compose": "^5.4.1",
|
||||
"@wordpress/core-data": "^4.4.5",
|
||||
"@wordpress/data": "^6.6.1",
|
||||
"@wordpress/edit-post": "^6.3.14",
|
||||
"@wordpress/edit-post": "^6.3.15",
|
||||
"@wordpress/editor": "^12.5.10",
|
||||
"@wordpress/element": "^4.4.1",
|
||||
"@wordpress/hooks": "^3.6.1",
|
||||
@ -4068,9 +4068,9 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/block-library": {
|
||||
"version": "7.3.14",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-7.3.14.tgz",
|
||||
"integrity": "sha512-qo4xFrgj1HxyBmIKbpffss2bzW4v3XyUgw3GE3EhBgc7WikCFAuiOnutEaByGpjFIol+CkSK09ujqMWo+O7FXQ==",
|
||||
"version": "7.3.15",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-7.3.15.tgz",
|
||||
"integrity": "sha512-UWKplojrgZuXWPUWNL/Q9jYgelfnqMdAtOIltcCK+dq03f3jWymYIZbZQAcqmYjXkK2unXLG77Drp3mVZXnKeQ==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.6.1",
|
||||
@ -4241,13 +4241,13 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/customize-widgets": {
|
||||
"version": "3.3.14",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-3.3.14.tgz",
|
||||
"integrity": "sha512-Y0PAWXiG6XVmTexqO/mKDI8b+9PnHwhY9NtfpWTdkFnahtQ0H42wMZtiewX9cKiCp5n6MSNQ6jZmUQUaZSoaWw==",
|
||||
"version": "3.3.15",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-3.3.15.tgz",
|
||||
"integrity": "sha512-yubgzsHGWjZwswzQnta8mYQD9vqKfC226/1cOtEUqCczVephax2D9GiQu/OEZ8gbZhjmq+fme4Ubtc5EUMjFnQ==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/block-editor": "^8.5.10",
|
||||
"@wordpress/block-library": "^7.3.14",
|
||||
"@wordpress/block-library": "^7.3.15",
|
||||
"@wordpress/blocks": "^11.5.3",
|
||||
"@wordpress/components": "^19.8.5",
|
||||
"@wordpress/compose": "^5.4.1",
|
||||
@ -4264,7 +4264,7 @@
|
||||
"@wordpress/keycodes": "^3.6.1",
|
||||
"@wordpress/media-utils": "^3.4.1",
|
||||
"@wordpress/preferences": "^1.2.5",
|
||||
"@wordpress/widgets": "^2.4.10",
|
||||
"@wordpress/widgets": "^2.4.11",
|
||||
"classnames": "^2.3.1",
|
||||
"lodash": "^4.17.21"
|
||||
}
|
||||
@ -4375,15 +4375,15 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/edit-post": {
|
||||
"version": "6.3.14",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-6.3.14.tgz",
|
||||
"integrity": "sha512-d3x1qSMAF2zBKxFvi4xoq11pssaVqU8CDW3zTca+2/7rE8BtGw+zYryBb41VRZZQCx4CbZIwZBzKWGB4hJRGuQ==",
|
||||
"version": "6.3.15",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-6.3.15.tgz",
|
||||
"integrity": "sha512-u1ibxfjNZ/QBu6b+mDatvZYmdutcxUvmfTPrzJKHpD/Nt7kEAo/oWJsWZBkZp7jmNuE59Iod17pMh/Ygao3xmQ==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.6.1",
|
||||
"@wordpress/api-fetch": "^6.3.1",
|
||||
"@wordpress/block-editor": "^8.5.10",
|
||||
"@wordpress/block-library": "^7.3.14",
|
||||
"@wordpress/block-library": "^7.3.15",
|
||||
"@wordpress/blocks": "^11.5.3",
|
||||
"@wordpress/components": "^19.8.5",
|
||||
"@wordpress/compose": "^5.4.1",
|
||||
@ -4412,15 +4412,15 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/edit-site": {
|
||||
"version": "4.3.14",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-4.3.14.tgz",
|
||||
"integrity": "sha512-ylTAN0dkjNFM1xQi5p+EpojYv9q2ooJXiCytWHlS1ra735iEiJw5bS4RIjZl3q5xFdClWF0KkSmEqJEpywVeEQ==",
|
||||
"version": "4.3.15",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-4.3.15.tgz",
|
||||
"integrity": "sha512-TeyXmxLNnrR788zGHDj6KcO+CB5m+bV+JDg5TUsyF8Jy9ggxeK+NS2uB369ytyTqJX/G5HtX90bvGnz/lmJthQ==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/a11y": "^3.6.1",
|
||||
"@wordpress/api-fetch": "^6.3.1",
|
||||
"@wordpress/block-editor": "^8.5.10",
|
||||
"@wordpress/block-library": "^7.3.14",
|
||||
"@wordpress/block-library": "^7.3.15",
|
||||
"@wordpress/blocks": "^11.5.3",
|
||||
"@wordpress/components": "^19.8.5",
|
||||
"@wordpress/compose": "^5.4.1",
|
||||
@ -4453,14 +4453,14 @@
|
||||
}
|
||||
},
|
||||
"@wordpress/edit-widgets": {
|
||||
"version": "4.3.14",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-4.3.14.tgz",
|
||||
"integrity": "sha512-MA33r+lk/74KwzeZVuaDgOM0FkbNEPmdBjn2J6j2lqSIZpWfLH5hVynz5KpSB4LE9YdvCmbGQhFF0ta6l7pD/A==",
|
||||
"version": "4.3.15",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-4.3.15.tgz",
|
||||
"integrity": "sha512-9WH5Dh7V5uChvTwsbwh8Gf2az3rCzTfL4XHw9TSrE0dhnKb7V+InttcdrUhbW1367U4+1lV1ZZnexFMeOkQb3Q==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/api-fetch": "^6.3.1",
|
||||
"@wordpress/block-editor": "^8.5.10",
|
||||
"@wordpress/block-library": "^7.3.14",
|
||||
"@wordpress/block-library": "^7.3.15",
|
||||
"@wordpress/blocks": "^11.5.3",
|
||||
"@wordpress/components": "^19.8.5",
|
||||
"@wordpress/compose": "^5.4.1",
|
||||
@ -4480,7 +4480,7 @@
|
||||
"@wordpress/preferences": "^1.2.5",
|
||||
"@wordpress/reusable-blocks": "^3.4.10",
|
||||
"@wordpress/url": "^3.7.1",
|
||||
"@wordpress/widgets": "^2.4.10",
|
||||
"@wordpress/widgets": "^2.4.11",
|
||||
"classnames": "^2.3.1",
|
||||
"lodash": "^4.17.21"
|
||||
}
|
||||
@ -5756,9 +5756,9 @@
|
||||
"integrity": "sha512-Xs37x0IkvNewPNKs1A8cnw5xLb+AqwUqqCsH4+5Sjat5GDqP86mHgLfRIlE4d6fBYg+q6tO7DVPG49TT3/wzgA=="
|
||||
},
|
||||
"@wordpress/widgets": {
|
||||
"version": "2.4.10",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.4.10.tgz",
|
||||
"integrity": "sha512-EiZkJO8FSftwtNGvnSfeQruvSkwPe9KJRg/+5fPJhD9YQ3da0MiXrwqaQKMn0bIugJfvtbxdkc9dJfIQWy4bcA==",
|
||||
"version": "2.4.11",
|
||||
"resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.4.11.tgz",
|
||||
"integrity": "sha512-9aQJ+YLUJ51/L0o8teBLY+hlrYs8zAve+8nvFduj+lEtjAFS2gdXLpvPfU0wKOVixRseMbGFMKh8p/jlkjOtDQ==",
|
||||
"requires": {
|
||||
"@babel/runtime": "^7.16.0",
|
||||
"@wordpress/api-fetch": "^6.3.1",
|
||||
|
14
package.json
14
package.json
@ -81,24 +81,24 @@
|
||||
"@wordpress/api-fetch": "6.3.1",
|
||||
"@wordpress/autop": "3.6.1",
|
||||
"@wordpress/blob": "3.6.1",
|
||||
"@wordpress/block-directory": "3.4.14",
|
||||
"@wordpress/block-directory": "3.4.15",
|
||||
"@wordpress/block-editor": "8.5.10",
|
||||
"@wordpress/block-library": "7.3.14",
|
||||
"@wordpress/block-library": "7.3.15",
|
||||
"@wordpress/block-serialization-default-parser": "4.6.1",
|
||||
"@wordpress/blocks": "11.5.3",
|
||||
"@wordpress/components": "19.8.5",
|
||||
"@wordpress/compose": "5.4.1",
|
||||
"@wordpress/core-data": "4.4.5",
|
||||
"@wordpress/customize-widgets": "3.3.14",
|
||||
"@wordpress/customize-widgets": "3.3.15",
|
||||
"@wordpress/data": "6.6.1",
|
||||
"@wordpress/data-controls": "2.6.1",
|
||||
"@wordpress/date": "4.6.1",
|
||||
"@wordpress/deprecated": "3.6.1",
|
||||
"@wordpress/dom": "3.6.1",
|
||||
"@wordpress/dom-ready": "3.6.1",
|
||||
"@wordpress/edit-post": "6.3.14",
|
||||
"@wordpress/edit-site": "4.3.14",
|
||||
"@wordpress/edit-widgets": "4.3.14",
|
||||
"@wordpress/edit-post": "6.3.15",
|
||||
"@wordpress/edit-site": "4.3.15",
|
||||
"@wordpress/edit-widgets": "4.3.15",
|
||||
"@wordpress/editor": "12.5.10",
|
||||
"@wordpress/element": "4.4.1",
|
||||
"@wordpress/escape-html": "2.6.1",
|
||||
@ -129,7 +129,7 @@
|
||||
"@wordpress/url": "3.7.1",
|
||||
"@wordpress/viewport": "4.4.1",
|
||||
"@wordpress/warning": "2.6.1",
|
||||
"@wordpress/widgets": "2.4.10",
|
||||
"@wordpress/widgets": "2.4.11",
|
||||
"@wordpress/wordcount": "3.6.1",
|
||||
"backbone": "1.4.1",
|
||||
"clipboard": "2.0.10",
|
||||
|
@ -34,7 +34,7 @@ function render_block_core_legacy_widget( $attributes ) {
|
||||
|
||||
if ( isset( $attributes['instance']['encoded'], $attributes['instance']['hash'] ) ) {
|
||||
$serialized_instance = base64_decode( $attributes['instance']['encoded'] );
|
||||
if ( wp_hash( $serialized_instance ) !== $attributes['instance']['hash'] ) {
|
||||
if ( ! hash_equals( wp_hash( $serialized_instance ), (string) $attributes['instance']['hash'] ) ) {
|
||||
return '';
|
||||
}
|
||||
$instance = unserialize( $serialized_instance );
|
||||
|
@ -626,7 +626,7 @@ function render_block_core_navigation( $attributes, $content, $block ) {
|
||||
__( 'Close menu' ), // Close button label.
|
||||
esc_attr( implode( ' ', $responsive_container_classes ) ),
|
||||
esc_attr( implode( ' ', $open_button_classes ) ),
|
||||
safecss_filter_attr( $colors['overlay_inline_styles'] ),
|
||||
esc_attr( safecss_filter_attr( $colors['overlay_inline_styles'] ) ),
|
||||
__( 'Menu' ),
|
||||
$toggle_button_content
|
||||
);
|
||||
|
@ -45,7 +45,7 @@ function render_block_core_post_featured_image( $attributes, $content, $block )
|
||||
if ( ! empty( $attributes['scale'] ) ) {
|
||||
$image_styles .= "object-fit:{$attributes['scale']};";
|
||||
}
|
||||
$featured_image = str_replace( 'src=', 'style="' . esc_attr( $image_styles ) . '" src=', $featured_image );
|
||||
$featured_image = str_replace( '<img ', '<img style="' . esc_attr( safecss_filter_attr( $image_styles ) ) . '" ', $featured_image );
|
||||
}
|
||||
|
||||
return "<figure $wrapper_attributes>$featured_image</figure>";
|
||||
|
@ -20,7 +20,7 @@ function render_block_core_rss( $attributes ) {
|
||||
$rss = fetch_feed( $attributes['feedURL'] );
|
||||
|
||||
if ( is_wp_error( $rss ) ) {
|
||||
return '<div class="components-placeholder"><div class="notice notice-error"><strong>' . __( 'RSS Error:' ) . '</strong> ' . $rss->get_error_message() . '</div></div>';
|
||||
return '<div class="components-placeholder"><div class="notice notice-error"><strong>' . __( 'RSS Error:' ) . '</strong> ' . esc_html( $rss->get_error_message() ) . '</div></div>';
|
||||
}
|
||||
|
||||
if ( ! $rss->get_item_quantity() ) {
|
||||
@ -48,8 +48,8 @@ function render_block_core_rss( $attributes ) {
|
||||
if ( $date ) {
|
||||
$date = sprintf(
|
||||
'<time datetime="%1$s" class="wp-block-rss__item-publish-date">%2$s</time> ',
|
||||
date_i18n( get_option( 'c' ), $date ),
|
||||
date_i18n( get_option( 'date_format' ), $date )
|
||||
esc_attr( date_i18n( get_option( 'c' ), $date ) ),
|
||||
esc_attr( date_i18n( get_option( 'date_format' ), $date ) )
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -287,12 +287,12 @@ function styles_for_block_core_search( $attributes ) {
|
||||
// Add color styles.
|
||||
$has_text_color = ! empty( $attributes['style']['color']['text'] );
|
||||
if ( $has_text_color ) {
|
||||
$button_styles[] = sprintf( 'color: %s;', esc_attr( $attributes['style']['color']['text'] ) );
|
||||
$button_styles[] = sprintf( 'color: %s;', $attributes['style']['color']['text'] );
|
||||
}
|
||||
|
||||
$has_background_color = ! empty( $attributes['style']['color']['background'] );
|
||||
if ( $has_background_color ) {
|
||||
$button_styles[] = sprintf( 'background-color: %s;', esc_attr( $attributes['style']['color']['background'] ) );
|
||||
$button_styles[] = sprintf( 'background-color: %s;', $attributes['style']['color']['background'] );
|
||||
}
|
||||
|
||||
$has_custom_gradient = ! empty( $attributes['style']['color']['gradient'] );
|
||||
@ -301,9 +301,9 @@ function styles_for_block_core_search( $attributes ) {
|
||||
}
|
||||
|
||||
return array(
|
||||
'input' => ! empty( $input_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $input_styles ) ) ) : '',
|
||||
'button' => ! empty( $button_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $button_styles ) ) ) : '',
|
||||
'wrapper' => ! empty( $wrapper_styles ) ? sprintf( ' style="%s"', safecss_filter_attr( implode( ' ', $wrapper_styles ) ) ) : '',
|
||||
'input' => ! empty( $input_styles ) ? sprintf( ' style="%s"', esc_attr( safecss_filter_attr( implode( ' ', $input_styles ) ) ) ) : '',
|
||||
'button' => ! empty( $button_styles ) ? sprintf( ' style="%s"', esc_attr( safecss_filter_attr( implode( ' ', $button_styles ) ) ) ) : '',
|
||||
'wrapper' => ! empty( $wrapper_styles ) ? sprintf( ' style="%s"', esc_attr( safecss_filter_attr( implode( ' ', $wrapper_styles ) ) ) ) : '',
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ function render_block_core_widget_group( $attributes, $content, $block ) {
|
||||
$html = '';
|
||||
|
||||
if ( ! empty( $attributes['title'] ) ) {
|
||||
$html .= $before_title . $attributes['title'] . $after_title;
|
||||
$html .= $before_title . esc_html( $attributes['title'] ) . $after_title;
|
||||
}
|
||||
|
||||
$html .= '<div class="wp-widget-group__inner-blocks">';
|
||||
|
Loading…
x
Reference in New Issue
Block a user