WooCommerce Gutenberg Products Block - Version 6.0.2

Version Description

  • 2021-09-30 =

Bug Fixes

  • Fix fatal error when loading WooCommerce Blocks and one of its integration on an earlier version of WooCommerce Core.
Download this release

Release Info

Developer automattic
Plugin Icon 128x128 WooCommerce Gutenberg Products Block
Version 6.0.2
Comparing to
See all releases

Code changes from version 6.0.1 to 6.0.2

readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
4
  Requires at least: 5.8
5
  Tested up to: 5.8
6
  Requires PHP: 7.0
7
- Stable tag: 6.0.1
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -85,13 +85,19 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/
85
 
86
  == Changelog ==
87
 
88
- = 6.0.1 - 2021-10-29 =
 
 
 
 
 
 
89
 
90
  #### Bug Fixes
91
 
92
  - Support custom classes and alignment when updating Checkout block.
93
 
94
- = 6.0.0 - 2021-10-28 =
95
 
96
  #### Enhancements
97
 
4
  Requires at least: 5.8
5
  Tested up to: 5.8
6
  Requires PHP: 7.0
7
+ Stable tag: 6.0.2
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
85
 
86
  == Changelog ==
87
 
88
+ = 6.0.2 - 2021-09-30 =
89
+
90
+ #### Bug Fixes
91
+
92
+ - Fix fatal error when loading WooCommerce Blocks and one of its integration on an earlier version of WooCommerce Core.
93
+
94
+ = 6.0.1 - 2021-09-29 =
95
 
96
  #### Bug Fixes
97
 
98
  - Support custom classes and alignment when updating Checkout block.
99
 
100
+ = 6.0.0 - 2021-09-28 =
101
 
102
  #### Enhancements
103
 
src/Domain/Bootstrap.php CHANGED
@@ -58,20 +58,19 @@ class Bootstrap {
58
  public function __construct( Container $container ) {
59
  $this->container = $container;
60
  $this->package = $container->get( Package::class );
61
- $this->init();
62
- /**
63
- * Usable as a safe event hook for when the plugin has been loaded.
64
- */
65
- do_action( 'woocommerce_blocks_loaded' );
 
 
66
  }
67
 
68
  /**
69
  * Init the package - load the blocks library and define constants.
70
  */
71
  protected function init() {
72
- if ( ! $this->has_core_dependencies() ) {
73
- return;
74
- }
75
  $this->register_dependencies();
76
  $this->register_payment_methods();
77
 
58
  public function __construct( Container $container ) {
59
  $this->container = $container;
60
  $this->package = $container->get( Package::class );
61
+ if ( $this->has_core_dependencies() ) {
62
+ $this->init();
63
+ /**
64
+ * Usable as a safe event hook for when the plugin has been loaded.
65
+ */
66
+ do_action( 'woocommerce_blocks_loaded' );
67
+ }
68
  }
69
 
70
  /**
71
  * Init the package - load the blocks library and define constants.
72
  */
73
  protected function init() {
 
 
 
74
  $this->register_dependencies();
75
  $this->register_payment_methods();
76
 
src/Package.php CHANGED
@@ -106,7 +106,7 @@ class Package {
106
  NewPackage::class,
107
  function ( $container ) {
108
  // leave for automated version bumping.
109
- $version = '6.0.1';
110
  return new NewPackage(
111
  $version,
112
  dirname( __DIR__ ),
106
  NewPackage::class,
107
  function ( $container ) {
108
  // leave for automated version bumping.
109
+ $version = '6.0.2';
110
  return new NewPackage(
111
  $version,
112
  dirname( __DIR__ ),
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInite3060c1e47be4fd74897ffe404bfe378::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit02638fdf223d025aa7acd8c1eeb2a0cb::getLoader();
vendor/autoload_packages.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/composer/InstalledVersions.php CHANGED
@@ -32,7 +32,7 @@ private static $installed = array (
32
  'aliases' =>
33
  array (
34
  ),
35
- 'reference' => 'fbbe5857adc870276ea1783a4ea51dc6f94528ac',
36
  'name' => 'woocommerce/woocommerce-blocks',
37
  ),
38
  'versions' =>
@@ -76,7 +76,7 @@ private static $installed = array (
76
  'aliases' =>
77
  array (
78
  ),
79
- 'reference' => 'fbbe5857adc870276ea1783a4ea51dc6f94528ac',
80
  ),
81
  ),
82
  );
32
  'aliases' =>
33
  array (
34
  ),
35
+ 'reference' => '00a760ce7058a8aa228748c9874a5b339f349c06',
36
  'name' => 'woocommerce/woocommerce-blocks',
37
  ),
38
  'versions' =>
76
  'aliases' =>
77
  array (
78
  ),
79
+ 'reference' => '00a760ce7058a8aa228748c9874a5b339f349c06',
80
  ),
81
  ),
82
  );
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInite3060c1e47be4fd74897ffe404bfe378
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInite3060c1e47be4fd74897ffe404bfe378
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInite3060c1e47be4fd74897ffe404bfe378', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInite3060c1e47be4fd74897ffe404bfe378', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInite3060c1e47be4fd74897ffe404bfe378::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit02638fdf223d025aa7acd8c1eeb2a0cb
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit02638fdf223d025aa7acd8c1eeb2a0cb', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit02638fdf223d025aa7acd8c1eeb2a0cb', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit02638fdf223d025aa7acd8c1eeb2a0cb::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInite3060c1e47be4fd74897ffe404bfe378
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
@@ -46,9 +46,9 @@ class ComposerStaticInite3060c1e47be4fd74897ffe404bfe378
46
  public static function getInitializer(ClassLoader $loader)
47
  {
48
  return \Closure::bind(function () use ($loader) {
49
- $loader->prefixLengthsPsr4 = ComposerStaticInite3060c1e47be4fd74897ffe404bfe378::$prefixLengthsPsr4;
50
- $loader->prefixDirsPsr4 = ComposerStaticInite3060c1e47be4fd74897ffe404bfe378::$prefixDirsPsr4;
51
- $loader->classMap = ComposerStaticInite3060c1e47be4fd74897ffe404bfe378::$classMap;
52
 
53
  }, null, ClassLoader::class);
54
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit02638fdf223d025aa7acd8c1eeb2a0cb
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
46
  public static function getInitializer(ClassLoader $loader)
47
  {
48
  return \Closure::bind(function () use ($loader) {
49
+ $loader->prefixLengthsPsr4 = ComposerStaticInit02638fdf223d025aa7acd8c1eeb2a0cb::$prefixLengthsPsr4;
50
+ $loader->prefixDirsPsr4 = ComposerStaticInit02638fdf223d025aa7acd8c1eeb2a0cb::$prefixDirsPsr4;
51
+ $loader->classMap = ComposerStaticInit02638fdf223d025aa7acd8c1eeb2a0cb::$classMap;
52
 
53
  }, null, ClassLoader::class);
54
  }
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => 'fbbe5857adc870276ea1783a4ea51dc6f94528ac',
10
  'name' => 'woocommerce/woocommerce-blocks',
11
  ),
12
  'versions' =>
@@ -50,7 +50,7 @@
50
  'aliases' =>
51
  array (
52
  ),
53
- 'reference' => 'fbbe5857adc870276ea1783a4ea51dc6f94528ac',
54
  ),
55
  ),
56
  );
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => '00a760ce7058a8aa228748c9874a5b339f349c06',
10
  'name' => 'woocommerce/woocommerce-blocks',
11
  ),
12
  'versions' =>
50
  'aliases' =>
51
  array (
52
  ),
53
+ 'reference' => '00a760ce7058a8aa228748c9874a5b339f349c06',
54
  ),
55
  ),
56
  );
vendor/composer/jetpack_autoload_psr4.php CHANGED
@@ -11,11 +11,11 @@ return array(
11
  'path' => array( $vendorDir . '/composer/installers/src/Composer/Installers' )
12
  ),
13
  'Automattic\\WooCommerce\\Blocks\\Tests\\' => array(
14
- 'version' => '6.0.1.0',
15
  'path' => array( $baseDir . '/tests/php' )
16
  ),
17
  'Automattic\\WooCommerce\\Blocks\\' => array(
18
- 'version' => '6.0.1.0',
19
  'path' => array( $baseDir . '/src' )
20
  ),
21
  'Automattic\\Jetpack\\Autoloader\\' => array(
11
  'path' => array( $vendorDir . '/composer/installers/src/Composer/Installers' )
12
  ),
13
  'Automattic\\WooCommerce\\Blocks\\Tests\\' => array(
14
+ 'version' => '6.0.2.0',
15
  'path' => array( $baseDir . '/tests/php' )
16
  ),
17
  'Automattic\\WooCommerce\\Blocks\\' => array(
18
+ 'version' => '6.0.2.0',
19
  'path' => array( $baseDir . '/src' )
20
  ),
21
  'Automattic\\Jetpack\\Autoloader\\' => array(
vendor/jetpack-autoloader/class-autoloader-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-container.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-hook-manager.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-latest-autoloader-guard.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-manifest-reader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-path-processor.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-php-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugin-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugins-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-shutdown-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-loader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-selector.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpe3060c1e47be4fd74897ffe404bfe378;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp02638fdf223d025aa7acd8c1eeb2a0cb;
9
 
10
  // phpcs:ignore
11
 
woocommerce-gutenberg-products-block.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: WooCommerce Blocks
4
  * Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
5
  * Description: WooCommerce blocks for the Gutenberg editor.
6
- * Version: 6.0.1
7
  * Author: Automattic
8
  * Author URI: https://woocommerce.com
9
  * Text Domain: woo-gutenberg-products-block
10
  * Requires at least: 5.8
11
  * Requires PHP: 7.0
12
- * WC requires at least: 5.7
13
  * WC tested up to: 5.7
14
  *
15
  * @package WooCommerce\Blocks
3
  * Plugin Name: WooCommerce Blocks
4
  * Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
5
  * Description: WooCommerce blocks for the Gutenberg editor.
6
+ * Version: 6.0.2
7
  * Author: Automattic
8
  * Author URI: https://woocommerce.com
9
  * Text Domain: woo-gutenberg-products-block
10
  * Requires at least: 5.8
11
  * Requires PHP: 7.0
12
+ * WC requires at least: 5.6
13
  * WC tested up to: 5.7
14
  *
15
  * @package WooCommerce\Blocks