WooCommerce Admin - Version 3.0.1

Version Description

Download this release

Release Info

Developer fermarichal
Plugin Icon 128x128 WooCommerce Admin
Version 3.0.1
Comparing to
See all releases

Code changes from version 3.0.0 to 3.0.1

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  == 3.0.0 12/28/2021 ==
2
 
3
  - Fix: Fix an issue with the code that makes use of an invalid parameter with a PHP function. The use of this invalid parameter causes PHP 8 to throw a Fatal Error. #7855
1
+ == 3.0.1 12/30/2021 ==
2
+
3
+ - Do not initialize WC Pay promotion if spec is empty #8087
4
+
5
  == 3.0.0 12/28/2021 ==
6
 
7
  - Fix: Fix an issue with the code that makes use of an invalid parameter with a PHP function. The use of this invalid parameter causes PHP 8 to throw a Fatal Error. #7855
languages/woocommerce-admin.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the WooCommerce Admin package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce Admin 3.0.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-admin\n"
8
- "POT-Creation-Date: 2021-12-28 15:45:42+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -127,6 +127,8 @@ msgstr ""
127
  #: client/analytics/report/taxes/config.js:47
128
  #: client/analytics/report/taxes/table.js:58
129
  #: client/analytics/report/variations/config.js:44
 
 
130
  #: client/analytics/report/variations/table.js:66
131
  #: client/dashboard/dashboard-charts/config.js:40
132
  #: client/homescreen/activity-panel/panels.js:41
@@ -3344,7 +3346,7 @@ msgstr ""
3344
  msgid "Shipping Label"
3345
  msgstr ""
3346
 
3347
- #: src/Features/WcPayPromotion/WCPaymentGatewayPreInstallWCPayPromotion.php:50
3348
  #: src/Notes/UnsecuredReportFiles.php:55
3349
  #: client/wp-admin-scripts/payment-method-promotions/payment-promotion-row.tsx:178
3350
  #: packages/experimental/build-module/experimental-list/task-item/index.js:92
@@ -3352,7 +3354,7 @@ msgstr ""
3352
  msgid "Dismiss"
3353
  msgstr ""
3354
 
3355
- #: src/Features/WcPayPromotion/WCPaymentGatewayPreInstallWCPayPromotion.php:52
3356
  msgid "Dismiss the gateway"
3357
  msgstr ""
3358
 
2
  # This file is distributed under the same license as the WooCommerce Admin package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce Admin 3.0.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-admin\n"
8
+ "POT-Creation-Date: 2021-12-30 18:32:46+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
127
  #: client/analytics/report/taxes/config.js:47
128
  #: client/analytics/report/taxes/table.js:58
129
  #: client/analytics/report/variations/config.js:44
130
+ #: client/analytics/report/customers/table.js:59
131
+ #: client/analytics/report/get-reports.js:78
132
  #: client/analytics/report/variations/table.js:66
133
  #: client/dashboard/dashboard-charts/config.js:40
134
  #: client/homescreen/activity-panel/panels.js:41
3346
  msgid "Shipping Label"
3347
  msgstr ""
3348
 
3349
+ #: src/Features/WcPayPromotion/WCPaymentGatewayPreInstallWCPayPromotion.php:53
3350
  #: src/Notes/UnsecuredReportFiles.php:55
3351
  #: client/wp-admin-scripts/payment-method-promotions/payment-promotion-row.tsx:178
3352
  #: packages/experimental/build-module/experimental-list/task-item/index.js:92
3354
  msgid "Dismiss"
3355
  msgstr ""
3356
 
3357
+ #: src/Features/WcPayPromotion/WCPaymentGatewayPreInstallWCPayPromotion.php:55
3358
  msgid "Dismiss the gateway"
3359
  msgstr ""
3360
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: ecommerce, e-commerce, store, sales, reports, analytics, dashboard, activi
4
  Requires at least: 5.4.0
5
  Tested up to: 5.8.2
6
  Requires PHP: 7.0
7
- Stable tag: 3.0.0
8
  License: GPLv3
9
  License URI: https://github.com/woocommerce/woocommerce-admin/blob/main/license.txt
10
 
4
  Requires at least: 5.4.0
5
  Tested up to: 5.8.2
6
  Requires PHP: 7.0
7
+ Stable tag: 3.0.1
8
  License: GPLv3
9
  License URI: https://github.com/woocommerce/woocommerce-admin/blob/main/license.txt
10
 
src/Composer/Package.php CHANGED
@@ -26,7 +26,7 @@ class Package {
26
  *
27
  * @var string
28
  */
29
- const VERSION = '3.0.0';
30
 
31
  /**
32
  * Package active.
26
  *
27
  * @var string
28
  */
29
+ const VERSION = '3.0.1';
30
 
31
  /**
32
  * Package active.
src/FeaturePlugin.php CHANGED
@@ -147,7 +147,7 @@ class FeaturePlugin {
147
  $this->define( 'WC_ADMIN_PLUGIN_FILE', WC_ADMIN_ABSPATH . 'woocommerce-admin.php' );
148
  // WARNING: Do not directly edit this version number constant.
149
  // It is updated as part of the prebuild process from the package.json value.
150
- $this->define( 'WC_ADMIN_VERSION_NUMBER', '3.0.0' );
151
  }
152
 
153
  /**
147
  $this->define( 'WC_ADMIN_PLUGIN_FILE', WC_ADMIN_ABSPATH . 'woocommerce-admin.php' );
148
  // WARNING: Do not directly edit this version number constant.
149
  // It is updated as part of the prebuild process from the package.json value.
150
+ $this->define( 'WC_ADMIN_VERSION_NUMBER', '3.0.1' );
151
  }
152
 
153
  /**
src/Features/WcPayPromotion/WCPaymentGatewayPreInstallWCPayPromotion.php CHANGED
@@ -24,7 +24,10 @@ class WCPaymentGatewayPreInstallWCPayPromotion extends \WC_Payment_Gateway {
24
  * Constructor
25
  */
26
  public function __construct() {
27
- $wc_pay_spec = Init::get_wc_pay_promotion_spec();
 
 
 
28
  $this->id = static::GATEWAY_ID;
29
  $this->method_title = $wc_pay_spec->title;
30
  if ( property_exists( $wc_pay_spec, 'sub_title' ) ) {
24
  * Constructor
25
  */
26
  public function __construct() {
27
+ $wc_pay_spec = Init::get_wc_pay_promotion_spec();
28
+ if ( ! $wc_pay_spec ) {
29
+ return;
30
+ }
31
  $this->id = static::GATEWAY_ID;
32
  $this->method_title = $wc_pay_spec->title;
33
  if ( property_exists( $wc_pay_spec, 'sub_title' ) ) {
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit954379dce6e0cfa63b45b077e93cbbdb::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit55eb9d9fb0068f2ad860d6f6beb99f7d::getLoader();
vendor/autoload_packages.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
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 ComposerAutoloaderInit954379dce6e0cfa63b45b077e93cbbdb
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit954379dce6e0cfa63b45b077e93cbbdb
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit954379dce6e0cfa63b45b077e93cbbdb', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit954379dce6e0cfa63b45b077e93cbbdb', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit954379dce6e0cfa63b45b077e93cbbdb::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit55eb9d9fb0068f2ad860d6f6beb99f7d
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit55eb9d9fb0068f2ad860d6f6beb99f7d', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit55eb9d9fb0068f2ad860d6f6beb99f7d', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit55eb9d9fb0068f2ad860d6f6beb99f7d::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit954379dce6e0cfa63b45b077e93cbbdb
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
@@ -41,9 +41,9 @@ class ComposerStaticInit954379dce6e0cfa63b45b077e93cbbdb
41
  public static function getInitializer(ClassLoader $loader)
42
  {
43
  return \Closure::bind(function () use ($loader) {
44
- $loader->prefixLengthsPsr4 = ComposerStaticInit954379dce6e0cfa63b45b077e93cbbdb::$prefixLengthsPsr4;
45
- $loader->prefixDirsPsr4 = ComposerStaticInit954379dce6e0cfa63b45b077e93cbbdb::$prefixDirsPsr4;
46
- $loader->classMap = ComposerStaticInit954379dce6e0cfa63b45b077e93cbbdb::$classMap;
47
 
48
  }, null, ClassLoader::class);
49
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit55eb9d9fb0068f2ad860d6f6beb99f7d
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
41
  public static function getInitializer(ClassLoader $loader)
42
  {
43
  return \Closure::bind(function () use ($loader) {
44
+ $loader->prefixLengthsPsr4 = ComposerStaticInit55eb9d9fb0068f2ad860d6f6beb99f7d::$prefixLengthsPsr4;
45
+ $loader->prefixDirsPsr4 = ComposerStaticInit55eb9d9fb0068f2ad860d6f6beb99f7d::$prefixDirsPsr4;
46
+ $loader->classMap = ComposerStaticInit55eb9d9fb0068f2ad860d6f6beb99f7d::$classMap;
47
 
48
  }, null, ClassLoader::class);
49
  }
vendor/composer/installed.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php return array(
2
  'root' => array(
3
- 'pretty_version' => '3.0.0',
4
- 'version' => '3.0.0.0',
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
@@ -41,8 +41,8 @@
41
  ),
42
  ),
43
  'woocommerce/woocommerce-admin' => array(
44
- 'pretty_version' => '3.0.0',
45
- 'version' => '3.0.0.0',
46
  'type' => 'wordpress-plugin',
47
  'install_path' => __DIR__ . '/../../',
48
  'aliases' => array(),
1
  <?php return array(
2
  'root' => array(
3
+ 'pretty_version' => '3.0.1',
4
+ 'version' => '3.0.1.0',
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
41
  ),
42
  ),
43
  'woocommerce/woocommerce-admin' => array(
44
+ 'pretty_version' => '3.0.1',
45
+ 'version' => '3.0.1.0',
46
  'type' => 'wordpress-plugin',
47
  'install_path' => __DIR__ . '/../../',
48
  'aliases' => array(),
vendor/composer/jetpack_autoload_psr4.php CHANGED
@@ -11,7 +11,7 @@ return array(
11
  'path' => array( $vendorDir . '/composer/installers/src/Composer/Installers' )
12
  ),
13
  'Automattic\\WooCommerce\\Admin\\' => array(
14
- 'version' => '3.0.0.0',
15
  'path' => array( $baseDir . '/src' )
16
  ),
17
  'Automattic\\Jetpack\\Autoloader\\' => array(
11
  'path' => array( $vendorDir . '/composer/installers/src/Composer/Installers' )
12
  ),
13
  'Automattic\\WooCommerce\\Admin\\' => array(
14
+ 'version' => '3.0.1.0',
15
  'path' => array( $baseDir . '/src' )
16
  ),
17
  'Automattic\\Jetpack\\Autoloader\\' => array(
vendor/jetpack-autoloader/class-autoloader-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-container.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-hook-manager.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-latest-autoloader-guard.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-manifest-reader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-path-processor.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-php-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugin-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugins-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-shutdown-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-loader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-selector.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp954379dce6e0cfa63b45b077e93cbbdb;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp55eb9d9fb0068f2ad860d6f6beb99f7d;
9
 
10
  // phpcs:ignore
11
 
woocommerce-admin.php CHANGED
@@ -7,7 +7,7 @@
7
  * Author URI: https://woocommerce.com/
8
  * Text Domain: woocommerce-admin
9
  * Domain Path: /languages
10
- * Version: 3.0.0
11
  * Requires at least: 5.6
12
  * Requires PHP: 7.0
13
  *
7
  * Author URI: https://woocommerce.com/
8
  * Text Domain: woocommerce-admin
9
  * Domain Path: /languages
10
+ * Version: 3.0.1
11
  * Requires at least: 5.6
12
  * Requires PHP: 7.0
13
  *