@wordpress/widgets 3.31.0 → 3.32.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 +2 -0
- package/package.json +13 -13
- package/src/blocks/widget-group/index.php +7 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/widgets",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.32.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.
|
|
25
|
-
"@wordpress/block-editor": "^12.
|
|
26
|
-
"@wordpress/blocks": "^12.
|
|
27
|
-
"@wordpress/components": "^27.
|
|
28
|
-
"@wordpress/compose": "^6.
|
|
29
|
-
"@wordpress/core-data": "^6.
|
|
30
|
-
"@wordpress/data": "^9.
|
|
31
|
-
"@wordpress/element": "^5.
|
|
32
|
-
"@wordpress/i18n": "^4.
|
|
33
|
-
"@wordpress/icons": "^9.
|
|
34
|
-
"@wordpress/notices": "^4.
|
|
24
|
+
"@wordpress/api-fetch": "^6.52.0",
|
|
25
|
+
"@wordpress/block-editor": "^12.23.0",
|
|
26
|
+
"@wordpress/blocks": "^12.32.0",
|
|
27
|
+
"@wordpress/components": "^27.3.0",
|
|
28
|
+
"@wordpress/compose": "^6.32.0",
|
|
29
|
+
"@wordpress/core-data": "^6.32.0",
|
|
30
|
+
"@wordpress/data": "^9.25.0",
|
|
31
|
+
"@wordpress/element": "^5.32.0",
|
|
32
|
+
"@wordpress/i18n": "^4.55.0",
|
|
33
|
+
"@wordpress/icons": "^9.46.0",
|
|
34
|
+
"@wordpress/notices": "^4.23.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": "
|
|
44
|
+
"gitHead": "ac2b13783c28f959770cf029a797a712f59e1958"
|
|
45
45
|
}
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Renders the 'core/widget-group' block.
|
|
10
10
|
*
|
|
11
|
+
* @global array $wp_registered_sidebars
|
|
12
|
+
* @global int|string $_sidebar_being_rendered
|
|
13
|
+
*
|
|
11
14
|
* @param array $attributes The block attributes.
|
|
12
15
|
* @param string $content The block content.
|
|
13
16
|
* @param WP_Block $block The block.
|
|
@@ -59,6 +62,8 @@ add_action( 'init', 'register_block_core_widget_group' );
|
|
|
59
62
|
* it. This lets us get to the current sidebar in
|
|
60
63
|
* render_block_core_widget_group().
|
|
61
64
|
*
|
|
65
|
+
* @global int|string $_sidebar_being_rendered
|
|
66
|
+
*
|
|
62
67
|
* @param int|string $index Index, name, or ID of the dynamic sidebar.
|
|
63
68
|
*/
|
|
64
69
|
function note_sidebar_being_rendered( $index ) {
|
|
@@ -70,6 +75,8 @@ add_action( 'dynamic_sidebar_before', 'note_sidebar_being_rendered' );
|
|
|
70
75
|
/**
|
|
71
76
|
* Clear whatever we set in note_sidebar_being_rendered() after WordPress
|
|
72
77
|
* finishes rendering a sidebar.
|
|
78
|
+
*
|
|
79
|
+
* @global int|string $_sidebar_being_rendered
|
|
73
80
|
*/
|
|
74
81
|
function discard_sidebar_being_rendered() {
|
|
75
82
|
global $_sidebar_being_rendered;
|