Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 7f85c21

Browse files
committed
Merge branch 'release/9.6.2' into trunk
2 parents c5439ea + 05c3d57 commit 7f85c21

File tree

5 files changed

+32
-17
lines changed

5 files changed

+32
-17
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Testing notes and ZIP for release 9.6.3
2+
3+
Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/10841107/woocommerce-gutenberg-products-block.zip)
4+
5+
6+
## WooCommerce Core
7+
8+
### Fix the Checkout Blocks "Payment Options" settings crash in the editor. ([8535](https://github.com/woocommerce/woocommerce-blocks/pull/8535))
9+
10+
1. Install and enable an incompatible payment gateway plugin with the `Cart` & `Checkout` Blocks. (e.g., [IDPay Payment Gateway for Woocommerce](https://wordpress.org/plugins/woo-idpay-gateway/))
11+
2. Create a new page and add the `Checkout` Block
12+
3. Select the Checkout Block or any of its Inner Blocks (except for the `Payment Options` Inner Block). Ensure our incompatible payment gateway (e.g., IDPay) is listed under the incompatible gateways notice:
13+
14+
<img width="500" alt="image" src="https://user-images.githubusercontent.com/14235870/221174704-1d12e2bc-6c6c-4089-a2d2-a7bedc7f55c3.png">
15+
16+
4. Select the `Payment Options` Inner Block. Ensure its settings are correctly displayed, the incompatible gateways notice is showing and our incompatible payment Gateway is highlighted under `Settings -> Block -> Methods`
17+
18+
<img width="500" alt="image" src="https://user-images.githubusercontent.com/14235870/221178227-e4e12f08-dd88-4aac-824c-3990bde13a89.png">
19+
20+
| Before | After |
21+
| ------ | ----- |
22+
| <img width="1874" alt="image" src="https://user-images.githubusercontent.com/14235870/221171831-6245b687-a377-4730-92ab-8710360ee060.png"> | <img width="1208" alt="image" src="https://user-images.githubusercontent.com/14235870/221178227-e4e12f08-dd88-4aac-824c-3990bde13a89.png"> |

docs/internal-developers/testing/releases/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ Every release includes specific testing instructions for new features and bug fi
123123
- [9.6.0](./960.md)
124124
- [9.6.1](./961.md)
125125
- [9.6.2](./962.md)
126+
- [9.6.3](./963.md)
127+
126128

127129
<!-- FEEDBACK -->
128130

readme.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/
8080

8181
== Changelog ==
8282

83+
= 9.6.3 - 2023-02-27 =
84+
85+
#### Bug Fixes
86+
87+
- Fix: Ensure that Express Payment buttons are visible next to each other. ([8548](https://github.com/woocommerce/woocommerce-blocks/pull/8548))
88+
- Check if session is set before returning updated customer address. ([8537](https://github.com/woocommerce/woocommerce-blocks/pull/8537))
89+
- Fix the Checkout Blocks "Payment Options" settings crash in the editor. ([8535](https://github.com/woocommerce/woocommerce-blocks/pull/8535))
90+
8391
= 9.6.2 - 2023-02-22 =
8492

8593
#### Bug Fixes

src/BlockTemplatesController.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
namespace Automattic\WooCommerce\Blocks;
33

44
use Automattic\WooCommerce\Blocks\Domain\Package;
5-
use Automattic\WooCommerce\Blocks\Templates\BlockTemplatesCompatibility;
65
use Automattic\WooCommerce\Blocks\Templates\ProductAttributeTemplate;
76
use Automattic\WooCommerce\Blocks\Utils\BlockTemplateUtils;
87

@@ -325,14 +324,6 @@ function( $template ) {
325324
$template->description = BlockTemplateUtils::get_block_template_description( $template->slug );
326325
}
327326

328-
if ( 'single-product' === $template->slug ) {
329-
if ( ! is_admin() ) {
330-
$new_content = BlockTemplatesCompatibility::wrap_single_product_template( $template->content );
331-
$template->content = $new_content;
332-
}
333-
return $template;
334-
}
335-
336327
return $template;
337328
},
338329
$query_result

src/Domain/Bootstrap.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
use Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry;
2323
use Automattic\WooCommerce\Blocks\Registry\Container;
2424
use Automattic\WooCommerce\Blocks\Templates\ClassicTemplatesCompatibility;
25-
use Automattic\WooCommerce\Blocks\Templates\BlockTemplatesCompatibility;
2625
use Automattic\WooCommerce\Blocks\Templates\ProductAttributeTemplate;
2726
use Automattic\WooCommerce\Blocks\Templates\ProductSearchResultsTemplate;
2827
use Automattic\WooCommerce\StoreApi\RoutesController;
@@ -130,7 +129,6 @@ function() {
130129
$this->container->get( ProductSearchResultsTemplate::class );
131130
$this->container->get( ProductAttributeTemplate::class );
132131
$this->container->get( ClassicTemplatesCompatibility::class );
133-
$this->container->get( BlockTemplatesCompatibility::class );
134132
$this->container->get( BlockPatterns::class );
135133
$this->container->get( PaymentsApi::class );
136134
$this->container->get( ShippingController::class )->init();
@@ -276,12 +274,6 @@ function ( Container $container ) {
276274
return new ClassicTemplatesCompatibility( $asset_data_registry );
277275
}
278276
);
279-
$this->container->register(
280-
BlockTemplatesCompatibility::class,
281-
function () {
282-
return new BlockTemplatesCompatibility();
283-
}
284-
);
285277
$this->container->register(
286278
DraftOrders::class,
287279
function( Container $container ) {

0 commit comments

Comments
 (0)