@wordpress/widgets 2.17.0 → 2.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.18.0 (2022-10-19)
6
+
5
7
  ## 2.17.0 (2022-10-05)
6
8
 
7
9
  ## 2.16.0 (2022-09-21)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/widgets",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "Functionality used by the widgets block editor in the Widgets screen and the Customizer.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -21,17 +21,17 @@
21
21
  "react-native": "src/index",
22
22
  "dependencies": {
23
23
  "@babel/runtime": "^7.16.0",
24
- "@wordpress/api-fetch": "^6.16.0",
25
- "@wordpress/block-editor": "^10.2.0",
26
- "@wordpress/blocks": "^11.18.0",
27
- "@wordpress/components": "^21.2.0",
28
- "@wordpress/compose": "^5.17.0",
29
- "@wordpress/core-data": "^5.2.0",
30
- "@wordpress/data": "^7.3.0",
31
- "@wordpress/element": "^4.17.0",
32
- "@wordpress/i18n": "^4.19.0",
33
- "@wordpress/icons": "^9.10.0",
34
- "@wordpress/notices": "^3.19.0",
24
+ "@wordpress/api-fetch": "^6.17.0",
25
+ "@wordpress/block-editor": "^10.3.0",
26
+ "@wordpress/blocks": "^11.19.0",
27
+ "@wordpress/components": "^21.3.0",
28
+ "@wordpress/compose": "^5.18.0",
29
+ "@wordpress/core-data": "^5.3.0",
30
+ "@wordpress/data": "^7.4.0",
31
+ "@wordpress/element": "^4.18.0",
32
+ "@wordpress/i18n": "^4.20.0",
33
+ "@wordpress/icons": "^9.11.0",
34
+ "@wordpress/notices": "^3.20.0",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
37
  "peerDependencies": {
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "8d42d2febb7d0ba8372a33e560a62f5a5f6a9112"
44
+ "gitHead": "a2ff0e6471c88436dad0287beb88d1729aa6f5dd"
45
45
  }
@@ -34,7 +34,7 @@ function render_block_core_legacy_widget( $attributes ) {
34
34
 
35
35
  if ( isset( $attributes['instance']['encoded'], $attributes['instance']['hash'] ) ) {
36
36
  $serialized_instance = base64_decode( $attributes['instance']['encoded'] );
37
- if ( wp_hash( $serialized_instance ) !== $attributes['instance']['hash'] ) {
37
+ if ( ! hash_equals( wp_hash( $serialized_instance ), (string) $attributes['instance']['hash'] ) ) {
38
38
  return '';
39
39
  }
40
40
  $instance = unserialize( $serialized_instance );
@@ -28,7 +28,7 @@ function render_block_core_widget_group( $attributes, $content, $block ) {
28
28
  $html = '';
29
29
 
30
30
  if ( ! empty( $attributes['title'] ) ) {
31
- $html .= $before_title . $attributes['title'] . $after_title;
31
+ $html .= $before_title . esc_html( $attributes['title'] ) . $after_title;
32
32
  }
33
33
 
34
34
  $html .= '<div class="wp-widget-group__inner-blocks">';