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

Commit be76b2c

Browse files
github-actions[bot]github-actionswavvvesAlex FloriscaTarun Vijwani
authored
Release: 8.7.2 (#7396)
* Empty commit for release pull request * Added readme.txt changelog entry * Update HPOS compatibility snippet (#7395) * 8.7.2 Testing notes * Update testing notes * Update testing notes * Bumped version * Refactor force billing: remove forcedBillingAddress from conditions for showBillingFields (#7393) Co-authored-by: Niels Lange <[email protected]> * Updated testing instructions and changelog to include #7393 * Updated testing zip * Bumping version strings to new version. Co-authored-by: github-actions <[email protected]> Co-authored-by: Paulo Arromba <[email protected]> Co-authored-by: Alex Florisca <[email protected]> Co-authored-by: Tarun Vijwani <[email protected]> Co-authored-by: Niels Lange <[email protected]>
1 parent d2ec81a commit be76b2c

File tree

9 files changed

+47
-16
lines changed

9 files changed

+47
-16
lines changed

assets/js/base/context/hooks/use-checkout-address.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ export const useCheckoutAddress = (): CheckoutAddress => {
9090
useShippingAsBilling,
9191
setUseShippingAsBilling: __internalSetUseShippingAsBilling,
9292
showShippingFields: ! forcedBillingAddress && needsShipping,
93-
showBillingFields:
94-
forcedBillingAddress || ! needsShipping || ! useShippingAsBilling,
93+
showBillingFields: ! needsShipping || ! useShippingAsBilling,
9594
forcedBillingAddress,
9695
};
9796
};

assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/frontend.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ const FrontendBlock = ( {
3838
showCompanyField,
3939
showPhoneField,
4040
} = useCheckoutBlockContext();
41-
const { showBillingFields } = useCheckoutAddress();
41+
const { showBillingFields, forcedBillingAddress } = useCheckoutAddress();
4242

43-
if ( ! showBillingFields ) {
43+
if ( ! showBillingFields && ! forcedBillingAddress ) {
4444
return null;
4545
}
4646

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 8.7.2
2+
3+
Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/9785242/woocommerce-gutenberg-products-block.zip)
4+
5+
## Feature plugin and package inclusion in WooCommerce
6+
7+
### Fixed a problem where Custom Order Tables compatibility declaration could fail due to the unpredictable plugin order load ([7395](https://github.com/woocommerce/woocommerce-blocks/pull/7395))
8+
9+
#### User Facing Testing
10+
11+
1. Refer to [High Performance Order Storage Upgrade Recipe Book](https://github.com/woocommerce/woocommerce/wiki/High-Performance-Order-Storage-Upgrade-Recipe-Book) on how to enable HPOS
12+
2. Ensure no incompatibility warnings are displayed regarding the Blocks plugin
13+
14+
### Refactor useCheckoutAddress hook to enable "Use same address for billing" option in Editor ([7393](https://github.com/woocommerce/woocommerce-blocks/pull/7393))
15+
16+
#### User Facing Testing
17+
18+
1. Go to `wp-admin/admin.php?page=wc-settings&tab=shipping&section=options` page.
19+
2. Enable the `Force shipping to the customer billing address` option and save the changes.
20+
3. Go to Checkout block Editor, and confirm `Use same address for billing` toggle is working as expected.
21+
4. Go to the Checkout block front-end, and confirm shipping address form is not visible.
22+
5. Change the billing address, confirm the shipping address in the order summary gets changed, and shipping methods are updated.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Every release includes specific testing instructions for new features and bug fi
9393
- [8.6.0](./860.md)
9494
- [8.7.0](./870.md)
9595
- [8.7.1](./871.md)
96+
- [8.7.2](./872.md)
9697

9798
<!-- FEEDBACK -->
9899

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@woocommerce/block-library",
33
"title": "WooCommerce Blocks",
44
"author": "Automattic",
5-
"version": "8.7.1",
5+
"version": "8.7.2",
66
"description": "WooCommerce blocks for the Gutenberg editor.",
77
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
88
"keywords": [

readme.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
44
Requires at least: 6.0
55
Tested up to: 6.0
66
Requires PHP: 7.0
7-
Stable tag: 8.7.1
7+
Stable tag: 8.7.2
88
License: GPLv3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -80,8 +80,17 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/
8080

8181
== Changelog ==
8282

83+
= 8.7.2 - 2022-10-13 =
84+
85+
#### Bug Fixes
86+
87+
- Fixed a problem where Custom Order Tables compatibility declaration could fail due to the unpredictable plugin order load. ([7395](https://github.com/woocommerce/woocommerce-blocks/pull/7395))
88+
- Refactor useCheckoutAddress hook to enable "Use same address for billing" option in Editor ([7393](https://github.com/woocommerce/woocommerce-blocks/pull/7393))
89+
8390
= 8.7.1 - 2022-10-12 =
8491

92+
#### Bug Fixes
93+
8594
- Fixed an issue where JavaScript errors would occur when more than one extension tried to filter specific payment methods in the Cart and Checkout blocks. ([7377](https://github.com/woocommerce/woocommerce-blocks/pull/7377))
8695

8796
= 8.7.0 - 2022-10-10 =

src/Package.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function container( $reset = false ) {
109109
NewPackage::class,
110110
function ( $container ) {
111111
// leave for automated version bumping.
112-
$version = '8.7.1';
112+
$version = '8.7.2';
113113
return new NewPackage(
114114
$version,
115115
dirname( __DIR__ ),

woocommerce-gutenberg-products-block.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: WooCommerce Blocks
44
* Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
55
* Description: WooCommerce blocks for the Gutenberg editor.
6-
* Version: 8.7.1
6+
* Version: 8.7.2
77
* Author: Automattic
88
* Author URI: https://woocommerce.com
99
* Text Domain: woo-gutenberg-products-block
@@ -25,14 +25,14 @@
2525
}
2626

2727
// Declare compatibility with custom order tables for WooCommerce.
28-
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
29-
add_action(
30-
'before_woocommerce_init',
31-
function () {
28+
add_action(
29+
'before_woocommerce_init',
30+
function () {
31+
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
3232
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
3333
}
34-
);
35-
}
34+
}
35+
);
3636

3737
/**
3838
* Whether notices must be displayed in the current page (plugins and WooCommerce pages).

0 commit comments

Comments
 (0)