Version Description
- 2020-09-09 =
WooCommerce
* Fix - Check for state and postcode fields only if required in show_shipping
. #27628
Download this release
Release Info
Developer | sadowski |
Plugin | WooCommerce |
Version | 4.5.1 |
Comparing to | |
See all releases |
Code changes from version 4.5.0 to 4.5.1
- i18n/languages/woocommerce.pot +3 -3
- includes/class-wc-cart.php +9 -1
- includes/class-woocommerce.php +1 -1
- readme.txt +6 -1
- vendor/autoload.php +1 -1
- vendor/autoload_packages.php +1 -1
- vendor/class-autoloader-handler.php +1 -1
- vendor/class-classes-handler.php +1 -1
- vendor/class-files-handler.php +1 -1
- vendor/class-plugins-handler.php +1 -1
- vendor/class-version-selector.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
- vendor/jetpack-autoloader/autoload_functions.php +1 -1
- woocommerce.php +1 -1
i18n/languages/woocommerce.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the WooCommerce plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce 4.5.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2020-09-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
"X-Domain: woocommerce\n"
|
@@ -7200,7 +7200,7 @@ msgid "via %s"
|
|
7200 |
msgstr ""
|
7201 |
|
7202 |
#: includes/abstracts/abstract-wc-order.php:1972
|
7203 |
-
#: includes/class-wc-cart.php:
|
7204 |
#: includes/class-wc-product-grouped.php:120
|
7205 |
msgid "Free!"
|
7206 |
msgstr ""
|
2 |
# This file is distributed under the same license as the WooCommerce plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce 4.5.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2020-09-09T15:51:54+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
"X-Domain: woocommerce\n"
|
7200 |
msgstr ""
|
7201 |
|
7202 |
#: includes/abstracts/abstract-wc-order.php:1972
|
7203 |
+
#: includes/class-wc-cart.php:1547
|
7204 |
#: includes/class-wc-product-grouped.php:120
|
7205 |
msgid "Free!"
|
7206 |
msgstr ""
|
includes/class-wc-cart.php
CHANGED
@@ -1520,7 +1520,15 @@ class WC_Cart extends WC_Legacy_Cart {
|
|
1520 |
}
|
1521 |
|
1522 |
if ( 'yes' === get_option( 'woocommerce_shipping_cost_requires_address' ) ) {
|
1523 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1524 |
return false;
|
1525 |
}
|
1526 |
}
|
1520 |
}
|
1521 |
|
1522 |
if ( 'yes' === get_option( 'woocommerce_shipping_cost_requires_address' ) ) {
|
1523 |
+
$country = $this->get_customer()->get_shipping_country();
|
1524 |
+
if ( ! $country ) {
|
1525 |
+
return false;
|
1526 |
+
}
|
1527 |
+
$country_fields = WC()->countries->get_address_fields( $country, 'shipping_' );
|
1528 |
+
if ( isset( $country_fields['shipping_state'] ) && $country_fields['shipping_state']['required'] && ! $this->get_customer()->get_shipping_state() ) {
|
1529 |
+
return false;
|
1530 |
+
}
|
1531 |
+
if ( isset( $country_fields['shipping_postcode'] ) && $country_fields['shipping_postcode']['required'] && ! $this->get_customer()->get_shipping_postcode() ) {
|
1532 |
return false;
|
1533 |
}
|
1534 |
}
|
includes/class-woocommerce.php
CHANGED
@@ -22,7 +22,7 @@ final class WooCommerce {
|
|
22 |
*
|
23 |
* @var string
|
24 |
*/
|
25 |
-
public $version = '4.5.
|
26 |
|
27 |
/**
|
28 |
* WooCommerce Schema version.
|
22 |
*
|
23 |
* @var string
|
24 |
*/
|
25 |
+
public $version = '4.5.1';
|
26 |
|
27 |
/**
|
28 |
* WooCommerce Schema version.
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: e-commerce, store, sales, sell, woo, shop, cart, checkout, downloadable, d
|
|
4 |
Requires at least: 5.3
|
5 |
Tested up to: 5.5
|
6 |
Requires PHP: 7.0
|
7 |
-
Stable tag: 4.5.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -160,6 +160,11 @@ WooCommerce comes with some sample data you can use to see how products look; im
|
|
160 |
|
161 |
== Changelog ==
|
162 |
|
|
|
|
|
|
|
|
|
|
|
163 |
= 4.5.0 - 2020-09-08 =
|
164 |
|
165 |
**WooCommerce**
|
4 |
Requires at least: 5.3
|
5 |
Tested up to: 5.5
|
6 |
Requires PHP: 7.0
|
7 |
+
Stable tag: 4.5.1
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
160 |
|
161 |
== Changelog ==
|
162 |
|
163 |
+
= 4.5.1 - 2020-09-09 =
|
164 |
+
|
165 |
+
**WooCommerce**
|
166 |
+
* Fix - Check for state and postcode fields only if required in `show_shipping`. #27628
|
167 |
+
|
168 |
= 4.5.0 - 2020-09-08 =
|
169 |
|
170 |
**WooCommerce**
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitc26b76c4bb2f02a9f28d9d7388d0189a::getLoader();
|
vendor/autoload_packages.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp6dc849ca558881de20020de51053018a;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/class-autoloader-handler.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp6dc849ca558881de20020de51053018a;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/class-classes-handler.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp6dc849ca558881de20020de51053018a;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/class-files-handler.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp6dc849ca558881de20020de51053018a;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/class-plugins-handler.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp6dc849ca558881de20020de51053018a;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/class-version-selector.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp6dc849ca558881de20020de51053018a;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitac407d8a2835fac8d70cc96973c9a025
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitc26b76c4bb2f02a9f28d9d7388d0189a
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitc26b76c4bb2f02a9f28d9d7388d0189a', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitc26b76c4bb2f02a9f28d9d7388d0189a', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitc26b76c4bb2f02a9f28d9d7388d0189a::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'S' =>
|
@@ -196,9 +196,9 @@ class ComposerStaticInitac407d8a2835fac8d70cc96973c9a025
|
|
196 |
public static function getInitializer(ClassLoader $loader)
|
197 |
{
|
198 |
return \Closure::bind(function () use ($loader) {
|
199 |
-
$loader->prefixLengthsPsr4 =
|
200 |
-
$loader->prefixDirsPsr4 =
|
201 |
-
$loader->classMap =
|
202 |
|
203 |
}, null, ClassLoader::class);
|
204 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitc26b76c4bb2f02a9f28d9d7388d0189a
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'S' =>
|
196 |
public static function getInitializer(ClassLoader $loader)
|
197 |
{
|
198 |
return \Closure::bind(function () use ($loader) {
|
199 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitc26b76c4bb2f02a9f28d9d7388d0189a::$prefixLengthsPsr4;
|
200 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitc26b76c4bb2f02a9f28d9d7388d0189a::$prefixDirsPsr4;
|
201 |
+
$loader->classMap = ComposerStaticInitc26b76c4bb2f02a9f28d9d7388d0189a::$classMap;
|
202 |
|
203 |
}, null, ClassLoader::class);
|
204 |
}
|
vendor/jetpack-autoloader/autoload_functions.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
-
namespace Automattic\Jetpack\Autoloader\
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
5 |
* @package automattic/jetpack-autoloader
|
6 |
*/
|
7 |
|
8 |
+
namespace Automattic\Jetpack\Autoloader\jp6dc849ca558881de20020de51053018a;
|
9 |
|
10 |
// phpcs:ignore
|
11 |
|
woocommerce.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WooCommerce
|
4 |
* Plugin URI: https://woocommerce.com/
|
5 |
* Description: An eCommerce toolkit that helps you sell anything. Beautifully.
|
6 |
-
* Version: 4.5.
|
7 |
* Author: Automattic
|
8 |
* Author URI: https://woocommerce.com
|
9 |
* Text Domain: woocommerce
|
3 |
* Plugin Name: WooCommerce
|
4 |
* Plugin URI: https://woocommerce.com/
|
5 |
* Description: An eCommerce toolkit that helps you sell anything. Beautifully.
|
6 |
+
* Version: 4.5.1
|
7 |
* Author: Automattic
|
8 |
* Author URI: https://woocommerce.com
|
9 |
* Text Domain: woocommerce
|