@wordpress/block-library 8.19.6 → 8.19.7
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "8.19.
|
|
3
|
+
"version": "8.19.7",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -31,36 +31,36 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.16.0",
|
|
34
|
-
"@wordpress/a11y": "^3.42.
|
|
35
|
-
"@wordpress/api-fetch": "^6.39.
|
|
36
|
-
"@wordpress/autop": "^3.42.
|
|
37
|
-
"@wordpress/blob": "^3.42.
|
|
38
|
-
"@wordpress/block-editor": "^12.10.
|
|
39
|
-
"@wordpress/blocks": "^12.19.
|
|
40
|
-
"@wordpress/components": "^25.8.
|
|
41
|
-
"@wordpress/compose": "^6.19.
|
|
42
|
-
"@wordpress/core-data": "^6.19.
|
|
43
|
-
"@wordpress/data": "^9.12.
|
|
44
|
-
"@wordpress/date": "^4.42.
|
|
45
|
-
"@wordpress/deprecated": "^3.42.
|
|
46
|
-
"@wordpress/dom": "^3.42.
|
|
47
|
-
"@wordpress/element": "^5.19.
|
|
48
|
-
"@wordpress/escape-html": "^2.42.
|
|
49
|
-
"@wordpress/hooks": "^3.42.
|
|
50
|
-
"@wordpress/html-entities": "^3.42.
|
|
51
|
-
"@wordpress/i18n": "^4.42.
|
|
52
|
-
"@wordpress/icons": "^9.33.
|
|
53
|
-
"@wordpress/interactivity": "^2.3.
|
|
54
|
-
"@wordpress/keycodes": "^3.42.
|
|
55
|
-
"@wordpress/notices": "^4.10.
|
|
56
|
-
"@wordpress/primitives": "^3.40.
|
|
57
|
-
"@wordpress/private-apis": "^0.24.
|
|
58
|
-
"@wordpress/reusable-blocks": "^4.19.
|
|
59
|
-
"@wordpress/rich-text": "^6.19.
|
|
60
|
-
"@wordpress/server-side-render": "^4.19.
|
|
61
|
-
"@wordpress/url": "^3.43.
|
|
62
|
-
"@wordpress/viewport": "^5.19.
|
|
63
|
-
"@wordpress/wordcount": "^3.42.
|
|
34
|
+
"@wordpress/a11y": "^3.42.7",
|
|
35
|
+
"@wordpress/api-fetch": "^6.39.7",
|
|
36
|
+
"@wordpress/autop": "^3.42.7",
|
|
37
|
+
"@wordpress/blob": "^3.42.7",
|
|
38
|
+
"@wordpress/block-editor": "^12.10.7",
|
|
39
|
+
"@wordpress/blocks": "^12.19.7",
|
|
40
|
+
"@wordpress/components": "^25.8.7",
|
|
41
|
+
"@wordpress/compose": "^6.19.7",
|
|
42
|
+
"@wordpress/core-data": "^6.19.7",
|
|
43
|
+
"@wordpress/data": "^9.12.7",
|
|
44
|
+
"@wordpress/date": "^4.42.7",
|
|
45
|
+
"@wordpress/deprecated": "^3.42.7",
|
|
46
|
+
"@wordpress/dom": "^3.42.7",
|
|
47
|
+
"@wordpress/element": "^5.19.7",
|
|
48
|
+
"@wordpress/escape-html": "^2.42.7",
|
|
49
|
+
"@wordpress/hooks": "^3.42.7",
|
|
50
|
+
"@wordpress/html-entities": "^3.42.7",
|
|
51
|
+
"@wordpress/i18n": "^4.42.7",
|
|
52
|
+
"@wordpress/icons": "^9.33.7",
|
|
53
|
+
"@wordpress/interactivity": "^2.3.7",
|
|
54
|
+
"@wordpress/keycodes": "^3.42.7",
|
|
55
|
+
"@wordpress/notices": "^4.10.7",
|
|
56
|
+
"@wordpress/primitives": "^3.40.7",
|
|
57
|
+
"@wordpress/private-apis": "^0.24.7",
|
|
58
|
+
"@wordpress/reusable-blocks": "^4.19.7",
|
|
59
|
+
"@wordpress/rich-text": "^6.19.7",
|
|
60
|
+
"@wordpress/server-side-render": "^4.19.7",
|
|
61
|
+
"@wordpress/url": "^3.43.7",
|
|
62
|
+
"@wordpress/viewport": "^5.19.7",
|
|
63
|
+
"@wordpress/wordcount": "^3.42.7",
|
|
64
64
|
"change-case": "^4.1.2",
|
|
65
65
|
"classnames": "^2.3.1",
|
|
66
66
|
"colord": "^2.7.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "5551609efcf6d5b15ac55842bbbb310faea607f9"
|
|
82
82
|
}
|
package/src/image/index.php
CHANGED
|
@@ -170,8 +170,8 @@ function block_core_image_render_lightbox( $block_content, $block ) {
|
|
|
170
170
|
if ( isset( $block['attrs']['id'] ) ) {
|
|
171
171
|
$img_uploaded_src = wp_get_attachment_url( $block['attrs']['id'] );
|
|
172
172
|
$img_metadata = wp_get_attachment_metadata( $block['attrs']['id'] );
|
|
173
|
-
$img_width = $img_metadata['width'];
|
|
174
|
-
$img_height = $img_metadata['height'];
|
|
173
|
+
$img_width = $img_metadata['width'] ?? 'none';
|
|
174
|
+
$img_height = $img_metadata['height'] ?? 'none';
|
|
175
175
|
} else {
|
|
176
176
|
$img_uploaded_src = $processor->get_attribute( 'src' );
|
|
177
177
|
$img_width = 'none';
|
|
@@ -38,6 +38,7 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
|
|
|
38
38
|
$link = 'next' === $navigation_type ? _x( 'Next', 'label for next post link' ) : _x( 'Previous', 'label for previous post link' );
|
|
39
39
|
$label = '';
|
|
40
40
|
|
|
41
|
+
// Only use hardcoded values here, otherwise we need to add escaping where these values are used.
|
|
41
42
|
$arrow_map = array(
|
|
42
43
|
'none' => '',
|
|
43
44
|
'arrow' => array(
|
|
@@ -88,7 +89,7 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
|
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
// Display arrows.
|
|
91
|
-
if ( isset( $attributes['arrow'] ) &&
|
|
92
|
+
if ( isset( $attributes['arrow'] ) && 'none' !== $attributes['arrow'] && isset( $arrow_map[ $attributes['arrow'] ] ) ) {
|
|
92
93
|
$arrow = $arrow_map[ $attributes['arrow'] ][ $navigation_type ];
|
|
93
94
|
|
|
94
95
|
if ( 'next' === $navigation_type ) {
|