This release fixes a bug that was introduced with the 4.5.0 release.
In 4.5.0, if you have “hide shipping costs until an address is entered” enabled in WooCommerce > Settings > Shipping > Shipping options, shipping was neither calculated nor added to the order for countries without a state required in the shipping address. (#27624)
We’ve fixed the issue and added additional tests to better prevent similar issues from occurring in the future. (#27628)
We highly recommend upgrading to this version, especially if you have “hide shipping costs until an address is entered” enabled in your settings.
Here is the additional changelog for this release:
* Fix - Check for state and postcode fields only if required in `show_shipping`. #27628
Thanks to everyone for reporting this issue promptly and helping out with the fix release.
You can download the latest release of WooCommerce here or visit Dashboard → Updates to update the plugin from your WordPress admin screen.