@wordpress/block-library 9.19.4 → 9.19.5

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": "9.19.4",
3
+ "version": "9.19.5",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -45,11 +45,11 @@
45
45
  "@wordpress/api-fetch": "^7.19.1",
46
46
  "@wordpress/autop": "^4.19.1",
47
47
  "@wordpress/blob": "^4.19.1",
48
- "@wordpress/block-editor": "^14.14.4",
48
+ "@wordpress/block-editor": "^14.14.5",
49
49
  "@wordpress/blocks": "^14.8.1",
50
- "@wordpress/components": "^29.5.2",
50
+ "@wordpress/components": "^29.5.3",
51
51
  "@wordpress/compose": "^7.19.1",
52
- "@wordpress/core-data": "^7.19.4",
52
+ "@wordpress/core-data": "^7.19.5",
53
53
  "@wordpress/data": "^10.19.1",
54
54
  "@wordpress/date": "^5.19.1",
55
55
  "@wordpress/deprecated": "^4.19.1",
@@ -65,12 +65,12 @@
65
65
  "@wordpress/keyboard-shortcuts": "^5.19.1",
66
66
  "@wordpress/keycodes": "^4.19.1",
67
67
  "@wordpress/notices": "^5.19.1",
68
- "@wordpress/patterns": "^2.19.4",
68
+ "@wordpress/patterns": "^2.19.5",
69
69
  "@wordpress/primitives": "^4.19.1",
70
70
  "@wordpress/private-apis": "^1.19.1",
71
- "@wordpress/reusable-blocks": "^5.19.4",
71
+ "@wordpress/reusable-blocks": "^5.19.5",
72
72
  "@wordpress/rich-text": "^7.19.1",
73
- "@wordpress/server-side-render": "^5.19.2",
73
+ "@wordpress/server-side-render": "^5.19.3",
74
74
  "@wordpress/url": "^4.19.1",
75
75
  "@wordpress/viewport": "^6.19.1",
76
76
  "@wordpress/wordcount": "^4.19.1",
@@ -91,5 +91,5 @@
91
91
  "publishConfig": {
92
92
  "access": "public"
93
93
  },
94
- "gitHead": "e4a8fd60358ac43799a82d364c5c9edf1b54dada"
94
+ "gitHead": "5bd48f228266e2f6557b29eae70b32e17f8c5f01"
95
95
  }
@@ -26,7 +26,7 @@ function render_block_core_post_author( $attributes, $content, $block ) {
26
26
  return '';
27
27
  }
28
28
 
29
- if ( ! post_type_supports( $block->context['postType'], 'author' ) ) {
29
+ if ( isset( $block->context['postType'] ) && ! post_type_supports( $block->context['postType'], 'author' ) ) {
30
30
  return '';
31
31
  }
32
32
 
@@ -26,7 +26,7 @@ function render_block_core_post_author_name( $attributes, $content, $block ) {
26
26
  return '';
27
27
  }
28
28
 
29
- if ( ! post_type_supports( $block->context['postType'], 'author' ) ) {
29
+ if ( isset( $block->context['postType'] ) && ! post_type_supports( $block->context['postType'], 'author' ) ) {
30
30
  return '';
31
31
  }
32
32