@wordpress/block-library 8.3.12 → 8.3.14

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.3.12",
3
+ "version": "8.3.14",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -31,34 +31,34 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.16.0",
34
- "@wordpress/a11y": "^3.26.1",
35
- "@wordpress/api-fetch": "^6.23.1",
36
- "@wordpress/autop": "^3.26.1",
37
- "@wordpress/blob": "^3.26.1",
38
- "@wordpress/block-editor": "^11.3.10",
39
- "@wordpress/blocks": "^12.3.3",
40
- "@wordpress/components": "^23.3.7",
41
- "@wordpress/compose": "^6.3.3",
42
- "@wordpress/core-data": "^6.3.3",
43
- "@wordpress/data": "^8.3.3",
44
- "@wordpress/date": "^4.26.2",
45
- "@wordpress/deprecated": "^3.26.1",
46
- "@wordpress/dom": "^3.26.1",
47
- "@wordpress/element": "^5.3.2",
48
- "@wordpress/escape-html": "^2.26.1",
49
- "@wordpress/hooks": "^3.26.1",
50
- "@wordpress/html-entities": "^3.26.1",
51
- "@wordpress/i18n": "^4.26.1",
52
- "@wordpress/icons": "^9.17.2",
53
- "@wordpress/keycodes": "^3.26.2",
54
- "@wordpress/notices": "^3.26.3",
55
- "@wordpress/primitives": "^3.24.2",
56
- "@wordpress/private-apis": "^0.8.1",
57
- "@wordpress/reusable-blocks": "^4.3.10",
58
- "@wordpress/rich-text": "^6.3.4",
59
- "@wordpress/server-side-render": "^4.3.7",
60
- "@wordpress/url": "^3.27.1",
61
- "@wordpress/viewport": "^5.3.3",
34
+ "@wordpress/a11y": "^3.26.2",
35
+ "@wordpress/api-fetch": "^6.23.2",
36
+ "@wordpress/autop": "^3.26.2",
37
+ "@wordpress/blob": "^3.26.2",
38
+ "@wordpress/block-editor": "^11.3.11",
39
+ "@wordpress/blocks": "^12.3.4",
40
+ "@wordpress/components": "^23.3.8",
41
+ "@wordpress/compose": "^6.3.4",
42
+ "@wordpress/core-data": "^6.3.4",
43
+ "@wordpress/data": "^8.3.4",
44
+ "@wordpress/date": "^4.26.3",
45
+ "@wordpress/deprecated": "^3.26.2",
46
+ "@wordpress/dom": "^3.26.2",
47
+ "@wordpress/element": "^5.3.3",
48
+ "@wordpress/escape-html": "^2.26.2",
49
+ "@wordpress/hooks": "^3.26.2",
50
+ "@wordpress/html-entities": "^3.26.2",
51
+ "@wordpress/i18n": "^4.26.2",
52
+ "@wordpress/icons": "^9.17.3",
53
+ "@wordpress/keycodes": "^3.26.3",
54
+ "@wordpress/notices": "^3.26.4",
55
+ "@wordpress/primitives": "^3.24.3",
56
+ "@wordpress/private-apis": "^0.8.2",
57
+ "@wordpress/reusable-blocks": "^4.3.11",
58
+ "@wordpress/rich-text": "^6.3.5",
59
+ "@wordpress/server-side-render": "^4.3.8",
60
+ "@wordpress/url": "^3.27.2",
61
+ "@wordpress/viewport": "^5.3.4",
62
62
  "change-case": "^4.1.2",
63
63
  "classnames": "^2.3.1",
64
64
  "colord": "^2.7.0",
@@ -77,5 +77,5 @@
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "6cf78aefb52e1ca38b58aa38a44a312b744f3310"
80
+ "gitHead": "479778b4251cc9506639a40a5ed65bcee649f949"
81
81
  }
@@ -34,6 +34,7 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
34
34
  $link = 'next' === $navigation_type ? _x( 'Next', 'label for next post link' ) : _x( 'Previous', 'label for previous post link' );
35
35
  $label = '';
36
36
 
37
+ // Only use hardcoded values here, otherwise we need to add escaping where these values are used.
37
38
  $arrow_map = array(
38
39
  'none' => '',
39
40
  'arrow' => array(
@@ -84,7 +85,7 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
84
85
  }
85
86
 
86
87
  // Display arrows.
87
- if ( isset( $attributes['arrow'] ) && ! empty( $attributes['arrow'] ) && 'none' !== $attributes['arrow'] ) {
88
+ if ( isset( $attributes['arrow'] ) && 'none' !== $attributes['arrow'] && isset( $arrow_map[ $attributes['arrow'] ] ) ) {
88
89
  $arrow = $arrow_map[ $attributes['arrow'] ][ $navigation_type ];
89
90
 
90
91
  if ( 'next' === $navigation_type ) {
@@ -142,14 +142,14 @@ function render_block_core_template_part( $attributes ) {
142
142
  }
143
143
 
144
144
  // Run through the actions that are typically taken on the_content.
145
+ $content = shortcode_unautop( $content );
146
+ $content = do_shortcode( $content );
145
147
  $seen_ids[ $template_part_id ] = true;
146
148
  $content = do_blocks( $content );
147
149
  unset( $seen_ids[ $template_part_id ] );
148
150
  $content = wptexturize( $content );
149
151
  $content = convert_smilies( $content );
150
- $content = shortcode_unautop( $content );
151
152
  $content = wp_filter_content_tags( $content, "template_part_{$area}" );
152
- $content = do_shortcode( $content );
153
153
 
154
154
  // Handle embeds for block template parts.
155
155
  global $wp_embed;