diff --git a/changelog.txt b/changelog.txt index f559510..e2a3ebe 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ *** Woo Subscriptions Changelog *** +2024-01-17 - version 5.9.1 +* Fix: Resolved an error that would occur with WooCommerce 8.5.0 when editing a subscription customer from the admin dashboard. + 2024-01-11 - version 5.9.0 * Fix: Resolved an issue that caused ordering the Admin Subscriptions List Table to not work when HPOS is enabled. * Fix: When switching all subscription items in the same cart, ensure the previous subscription is reused where possible instead of creating all new subscriptions. diff --git a/languages/woocommerce-subscriptions.pot b/languages/woocommerce-subscriptions.pot index bed6a1b..8b304b2 100644 --- a/languages/woocommerce-subscriptions.pot +++ b/languages/woocommerce-subscriptions.pot @@ -2,14 +2,14 @@ # This file is distributed under the same license as the Woo Subscriptions plugin. msgid "" msgstr "" -"Project-Id-Version: Woo Subscriptions 5.9.0\n" +"Project-Id-Version: Woo Subscriptions 5.9.1\n" "Report-Msgid-Bugs-To: https://woocommerce.com/contact-us\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-01-11T06:31:17+00:00\n" +"POT-Creation-Date: 2024-01-17T02:51:06+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.9.0\n" "X-Domain: woocommerce-subscriptions\n" diff --git a/vendor/autoload.php b/vendor/autoload.php index d7f5a78..cbbaad8 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit9ece70b6f360bc43bc3bc8c8cedd9233::getLoader(); +return ComposerAutoloaderInit05910b6e6fdd55087b6b8fac1607afc2::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index f2ee97d..8411e6d 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit9ece70b6f360bc43bc3bc8c8cedd9233 +class ComposerAutoloaderInit05910b6e6fdd55087b6b8fac1607afc2 { private static $loader; @@ -24,12 +24,12 @@ class ComposerAutoloaderInit9ece70b6f360bc43bc3bc8c8cedd9233 require __DIR__ . '/platform_check.php'; - spl_autoload_register(array('ComposerAutoloaderInit9ece70b6f360bc43bc3bc8c8cedd9233', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit05910b6e6fdd55087b6b8fac1607afc2', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit9ece70b6f360bc43bc3bc8c8cedd9233', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit05910b6e6fdd55087b6b8fac1607afc2', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit9ece70b6f360bc43bc3bc8c8cedd9233::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit05910b6e6fdd55087b6b8fac1607afc2::getInitializer($loader)); $loader->register(true); diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 315a720..8730f8b 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit9ece70b6f360bc43bc3bc8c8cedd9233 +class ComposerStaticInit05910b6e6fdd55087b6b8fac1607afc2 { public static $prefixLengthsPsr4 = array ( 'C' => @@ -129,9 +129,9 @@ class ComposerStaticInit9ece70b6f360bc43bc3bc8c8cedd9233 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit9ece70b6f360bc43bc3bc8c8cedd9233::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit9ece70b6f360bc43bc3bc8c8cedd9233::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit9ece70b6f360bc43bc3bc8c8cedd9233::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit05910b6e6fdd55087b6b8fac1607afc2::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit05910b6e6fdd55087b6b8fac1607afc2::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit05910b6e6fdd55087b6b8fac1607afc2::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 8dbd05c..e32ec3a 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -156,17 +156,17 @@ }, { "name": "woocommerce/subscriptions-core", - "version": "6.7.0", - "version_normalized": "6.7.0.0", + "version": "6.7.1", + "version_normalized": "6.7.1.0", "source": { "type": "git", "url": "https://github.com/Automattic/woocommerce-subscriptions-core.git", - "reference": "2531db11c67a060cbb06c6246c162688a2c9eccb" + "reference": "81d809a476e87c260492d4cc0413818d85e123cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Automattic/woocommerce-subscriptions-core/zipball/2531db11c67a060cbb06c6246c162688a2c9eccb", - "reference": "2531db11c67a060cbb06c6246c162688a2c9eccb", + "url": "https://api.github.com/repos/Automattic/woocommerce-subscriptions-core/zipball/81d809a476e87c260492d4cc0413818d85e123cc", + "reference": "81d809a476e87c260492d4cc0413818d85e123cc", "shasum": "" }, "require": { @@ -179,7 +179,7 @@ "woocommerce/woocommerce-sniffs": "0.1.0", "yoast/phpunit-polyfills": "1.1.0" }, - "time": "2024-01-11T04:55:48+00:00", + "time": "2024-01-17T01:56:28+00:00", "type": "wordpress-plugin", "extra": { "phpcodesniffer-search-depth": 2 @@ -209,7 +209,7 @@ "description": "Sell products and services with recurring payments in your WooCommerce Store.", "homepage": "https://github.com/Automattic/woocommerce-subscriptions-core", "support": { - "source": "https://github.com/Automattic/woocommerce-subscriptions-core/tree/6.7.0", + "source": "https://github.com/Automattic/woocommerce-subscriptions-core/tree/6.7.1", "issues": "https://github.com/Automattic/woocommerce-subscriptions-core/issues" }, "install-path": "../woocommerce/subscriptions-core" diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index eff33b2..3cbf775 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -1,9 +1,9 @@ array( 'name' => 'woocommerce/woocommerce-subscriptions', - 'pretty_version' => 'dev-release/5.9.0', - 'version' => 'dev-release/5.9.0', - 'reference' => '559969625c750b519df548291b5ba9280cdf8690', + 'pretty_version' => 'dev-release/5.9.1', + 'version' => 'dev-release/5.9.1', + 'reference' => '2f40fcd6696f5e7ebfecbb96d06001167970d953', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -32,18 +32,18 @@ ), ), 'woocommerce/subscriptions-core' => array( - 'pretty_version' => '6.7.0', - 'version' => '6.7.0.0', - 'reference' => '2531db11c67a060cbb06c6246c162688a2c9eccb', + 'pretty_version' => '6.7.1', + 'version' => '6.7.1.0', + 'reference' => '81d809a476e87c260492d4cc0413818d85e123cc', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../woocommerce/subscriptions-core', 'aliases' => array(), 'dev_requirement' => false, ), 'woocommerce/woocommerce-subscriptions' => array( - 'pretty_version' => 'dev-release/5.9.0', - 'version' => 'dev-release/5.9.0', - 'reference' => '559969625c750b519df548291b5ba9280cdf8690', + 'pretty_version' => 'dev-release/5.9.1', + 'version' => 'dev-release/5.9.1', + 'reference' => '2f40fcd6696f5e7ebfecbb96d06001167970d953', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), diff --git a/vendor/woocommerce/subscriptions-core/changelog.txt b/vendor/woocommerce/subscriptions-core/changelog.txt index dbb431f..7353e41 100644 --- a/vendor/woocommerce/subscriptions-core/changelog.txt +++ b/vendor/woocommerce/subscriptions-core/changelog.txt @@ -1,5 +1,8 @@ *** WooCommerce Subscriptions Core Changelog *** += 6.7.1 - 2024-01-17 = +* Fix - Resolved an error that would occur with WC 8.5.0 when editing a subscription customer from the admin dashboard. + = 6.7.0 - 2024-01-11 = * Update - Changed the edit subscription product "Expire after" (Subscription length) so it more clearly describes when a subscription will automatically stop renewing. * Update - Log all exceptions caught by WooCommerce while processing a subscription scheduled action. diff --git a/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-addresses.php b/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-addresses.php index 24272a4..87b4e47 100644 --- a/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-addresses.php +++ b/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-addresses.php @@ -143,7 +143,7 @@ class WC_Subscriptions_Addresses { */ public static function maybe_update_subscription_addresses( $user_id, $address_type ) { - if ( ! wcs_user_has_subscription( $user_id ) || wc_notice_count( 'error' ) > 0 || empty( $_POST['_wcsnonce'] ) || ! wp_verify_nonce( $_POST['_wcsnonce'], 'wcs_edit_address' ) ) { + if ( ! wcs_user_has_subscription( $user_id ) || ! isset( $_POST['_wcsnonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wcsnonce'] ) ), 'wcs_edit_address' ) || wc_notice_count( 'error' ) > 0 ) { return; } diff --git a/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-core-plugin.php b/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-core-plugin.php index 1c8623b..d6504ca 100644 --- a/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-core-plugin.php +++ b/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-core-plugin.php @@ -16,7 +16,7 @@ class WC_Subscriptions_Core_Plugin { * The version of subscriptions-core library. * @var string */ - protected $library_version = '6.7.0'; // WRCS: DEFINED_VERSION. + protected $library_version = '6.7.1'; // WRCS: DEFINED_VERSION. /** * The subscription scheduler instance. diff --git a/vendor/woocommerce/subscriptions-core/woocommerce-subscriptions-core.php b/vendor/woocommerce/subscriptions-core/woocommerce-subscriptions-core.php index 48c78bf..8dea0f6 100644 --- a/vendor/woocommerce/subscriptions-core/woocommerce-subscriptions-core.php +++ b/vendor/woocommerce/subscriptions-core/woocommerce-subscriptions-core.php @@ -6,5 +6,5 @@ * Author: Automattic * Author URI: https://woocommerce.com/ * Requires WP: 5.6 - * Version: 6.7.0 + * Version: 6.7.1 */ diff --git a/woocommerce-subscriptions.php b/woocommerce-subscriptions.php index d921ce3..d84ab9b 100644 --- a/woocommerce-subscriptions.php +++ b/woocommerce-subscriptions.php @@ -5,7 +5,7 @@ * Description: Sell products and services with recurring payments in your WooCommerce Store. * Author: WooCommerce * Author URI: https://woocommerce.com/ - * Version: 5.9.0 + * Version: 5.9.1 * * WC requires at least: 7.7.0 * WC tested up to: 8.2.0 @@ -77,7 +77,7 @@ class WC_Subscriptions { public static $plugin_file = __FILE__; /** @var string */ - public static $version = '5.9.0'; // WRCS: DEFINED_VERSION. + public static $version = '5.9.1'; // WRCS: DEFINED_VERSION. /** @var string */ public static $wc_minimum_supported_version = '7.7';