← All changes
|
src/Addons/ReactProductEditorAddon/ProductEditor.php
+4
-0
6.1.0
→
8.0.2
View file →
| @@ -99,8 +99,12 @@ | ||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | public function registerBlocks() { |
| 102 | 102 | |
| 103 | + if ( version_compare( wc()->version, '10.8.0', '>' ) ) { | |
| 104 | + return; | |
| 105 | + } | |
| 106 | + | |
| 103 | 107 | if ( ! class_exists( 'Automattic\WooCommerce\Admin\Features\ProductBlockEditor\BlockRegistry' ) ) { |
| 104 | 108 | return; |
| 105 | 109 | } |
| 106 | 110 | |