Gutenberg - Version 14.7.2

Version Description

Download this release

Release Info

Developer gutenbergplugin
Plugin Icon 128x128 Gutenberg
Version 14.7.2
Comparing to
See all releases

Code changes from version 14.7.1 to 14.7.2

changelog.txt CHANGED
@@ -1,6 +1,6 @@
1
  == Changelog ==
2
 
3
- = 14.7.1 =
4
 
5
 
6
 
@@ -8,14 +8,38 @@
8
 
9
  ### Bug Fixes
10
 
11
- #### Layout
12
- - Only pass parentLayout to block edit if not empty. ([46390](https://github.com/WordPress/gutenberg/pull/46390))
 
 
 
 
 
 
13
 
14
  ## Contributors
15
 
16
  The following contributors merged PRs in this release:
17
 
18
- @tellthemachines
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
 
21
  = 14.7.0 =
1
  == Changelog ==
2
 
3
+ = 14.7.2 =
4
 
5
 
6
 
8
 
9
  ### Bug Fixes
10
 
11
+ - Fix fatal error when using the plugin with PHP 8 and WordPress 6.0 by checking if block_type asset properties are set. ([46488](https://github.com/WordPress/gutenberg/pull/46488))
12
+
13
+
14
+ ## First time contributors
15
+
16
+ The following PRs were merged by first time contributors:
17
+
18
+
19
 
20
  ## Contributors
21
 
22
  The following contributors merged PRs in this release:
23
 
24
+ @noahtallen
25
+
26
+
27
+ = 14.7.1 =
28
+
29
+
30
+
31
+ ## Changelog
32
+
33
+ ### Bug Fixes
34
+
35
+ #### Layout
36
+ - Only pass parentLayout to block edit if not empty. ([46390](https://github.com/WordPress/gutenberg/pull/46390))
37
+
38
+ ## Contributors
39
+
40
+ The following contributors merged PRs in this release:
41
+
42
+ @tellthemachines
43
 
44
 
45
  = 14.7.0 =
gutenberg.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Printing since 1440. This is the development plugin for the new block editor in core.
6
  * Requires at least: 5.9
7
  * Requires PHP: 5.6
8
- * Version: 14.7.1
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
@@ -13,8 +13,8 @@
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
- define( 'GUTENBERG_VERSION', '14.7.1' );
17
- define( 'GUTENBERG_GIT_COMMIT', '0b7aa7f8565885db29b99074cfe69172d5f1af3b' );
18
  ### END AUTO-GENERATED DEFINES
19
 
20
  gutenberg_pre_init();
5
  * Description: Printing since 1440. This is the development plugin for the new block editor in core.
6
  * Requires at least: 5.9
7
  * Requires PHP: 5.6
8
+ * Version: 14.7.2
9
  * Author: Gutenberg Team
10
  * Text Domain: gutenberg
11
  *
13
  */
14
 
15
  ### BEGIN AUTO-GENERATED DEFINES
16
+ define( 'GUTENBERG_VERSION', '14.7.2' );
17
+ define( 'GUTENBERG_GIT_COMMIT', '6196ffc87aaf28c9fe82a94e7fc42d041b566b17' );
18
  ### END AUTO-GENERATED DEFINES
19
 
20
  gutenberg_pre_init();
lib/compat/wordpress-6.2/script-loader.php CHANGED
@@ -90,16 +90,18 @@ function gutenberg_resolve_assets_override() {
90
  $block_registry = WP_Block_Type_Registry::get_instance();
91
 
92
  foreach ( $block_registry->get_all_registered() as $block_type ) {
93
- $style_handles = array_merge(
94
- $style_handles,
95
- $block_type->style_handles,
96
- $block_type->editor_style_handles
97
- );
98
-
99
- $script_handles = array_merge(
100
- $script_handles,
101
- $block_type->script_handles
102
- );
 
 
103
  }
104
 
105
  $style_handles = array_unique( $style_handles );
90
  $block_registry = WP_Block_Type_Registry::get_instance();
91
 
92
  foreach ( $block_registry->get_all_registered() as $block_type ) {
93
+ // In older WordPress versions, like 6.0, these properties are not defined.
94
+ if ( isset( $block_type->style_handles ) && is_array( $block_type->style_handles ) ) {
95
+ $style_handles = array_merge( $style_handles, $block_type->style_handles );
96
+ }
97
+
98
+ if ( isset( $block_type->editor_style_handles ) && is_array( $block_type->editor_style_handles ) ) {
99
+ $style_handles = array_merge( $style_handles, $block_type->editor_style_handles );
100
+ }
101
+
102
+ if ( isset( $block_type->script_handles ) && is_array( $block_type->script_handles ) ) {
103
+ $script_handles = array_merge( $script_handles, $block_type->script_handles );
104
+ }
105
  }
106
 
107
  $style_handles = array_unique( $style_handles );
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === Gutenberg ===
2
  Contributors: matveb, joen, karmatosed
3
  Tested up to: 6.1
4
- Stable tag: 14.7.0
5
  License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
 
1
  === Gutenberg ===
2
  Contributors: matveb, joen, karmatosed
3
  Tested up to: 6.1
4
+ Stable tag: 14.7.1
5
  License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7