WooCommerce - Version 3.8.0-rc.2

Version Description

Download this release

Release Info

Developer vedjain
Plugin Icon 128x128 WooCommerce
Version 3.8.0-rc.2
Comparing to
See all releases

Code changes from version 3.8.0-rc.1 to 3.8.0-rc.2

i18n/languages/woocommerce.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the WooCommerce package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce 3.8.0-rc.1\n"
6
  "Report-Msgid-Bugs-To: https://github.com/woocommerce/woocommerce/issues\n"
7
- "POT-Creation-Date: 2019-10-16 07:53:41+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -7398,9 +7398,8 @@ msgstr ""
7398
  #: includes/admin/meta-boxes/views/html-order-items.php:199
7399
  #: includes/admin/reports/class-wc-report-taxes-by-code.php:218
7400
  #: includes/wc-account-functions.php:197 templates/cart/cart-totals.php:98
7401
- #: templates/cart/cart-totals.php:99 templates/cart/cart.php:125
7402
- #: templates/checkout/review-order.php:103 templates/myaccount/my-orders.php:17
7403
- #: templates/order/order-details.php:52
7404
  msgid "Total"
7405
  msgstr ""
7406
 
@@ -11269,7 +11268,7 @@ msgid "No billing address set."
11269
  msgstr ""
11270
 
11271
  #: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:389
11272
- #: includes/class-wc-order.php:1984 templates/checkout/order-receipt.php:38
11273
  #: templates/checkout/thankyou.php:68
11274
  msgid "Payment method:"
11275
  msgstr ""
@@ -11560,7 +11559,7 @@ msgid "This order is no longer editable."
11560
  msgstr ""
11561
 
11562
  #: includes/admin/meta-boxes/views/html-order-items.php:232
11563
- #: includes/class-wc-order.php:2001
11564
  msgid "Refund"
11565
  msgstr ""
11566
 
@@ -22410,7 +22409,7 @@ msgstr ""
22410
 
22411
  #: includes/wc-template-functions.php:2092 templates/cart/cart-totals.php:30
22412
  #: templates/cart/cart-totals.php:31 templates/cart/cart.php:33
22413
- #: templates/checkout/review-order.php:24
22414
  #: templates/checkout/review-order.php:56
22415
  msgid "Subtotal"
22416
  msgstr ""
@@ -22474,32 +22473,32 @@ msgstr ""
22474
  msgid "Server requirements not met, missing requirement(s): %s."
22475
  msgstr ""
22476
 
22477
- #: includes/wccom-site/class-wc-wccom-site-installer.php:280
22478
  msgid "Failed to retrieve product info from woocommerce.com"
22479
  msgstr ""
22480
 
22481
- #: includes/wccom-site/class-wc-wccom-site-installer.php:292
22482
  msgid "Missing product subscription"
22483
  msgstr ""
22484
 
22485
- #: includes/wccom-site/class-wc-wccom-site-installer.php:298
22486
  msgid "Could not find product package."
22487
  msgstr ""
22488
 
22489
- #: includes/wccom-site/class-wc-wccom-site-installer.php:318
22490
  msgid "Could not find download url for the product."
22491
  msgstr ""
22492
 
22493
- #: includes/wccom-site/class-wc-wccom-site-installer.php:334
22494
  msgid "Could not find download path."
22495
  msgstr ""
22496
 
22497
- #: includes/wccom-site/class-wc-wccom-site-installer.php:351
22498
  msgid "Could not find unpacked path."
22499
  msgstr ""
22500
 
22501
- #: includes/wccom-site/class-wc-wccom-site-installer.php:420
22502
- #: includes/wccom-site/class-wc-wccom-site-installer.php:456
22503
  msgid "Unknown product filename."
22504
  msgstr ""
22505
 
2
  # This file is distributed under the same license as the WooCommerce package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce 3.8.0-rc.2\n"
6
  "Report-Msgid-Bugs-To: https://github.com/woocommerce/woocommerce/issues\n"
7
+ "POT-Creation-Date: 2019-10-27 16:32:06+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
7398
  #: includes/admin/meta-boxes/views/html-order-items.php:199
7399
  #: includes/admin/reports/class-wc-report-taxes-by-code.php:218
7400
  #: includes/wc-account-functions.php:197 templates/cart/cart-totals.php:98
7401
+ #: templates/cart/cart-totals.php:99 templates/checkout/review-order.php:103
7402
+ #: templates/myaccount/my-orders.php:17 templates/order/order-details.php:52
 
7403
  msgid "Total"
7404
  msgstr ""
7405
 
11268
  msgstr ""
11269
 
11270
  #: includes/admin/meta-boxes/class-wc-meta-box-order-data.php:389
11271
+ #: includes/class-wc-order.php:1978 templates/checkout/order-receipt.php:38
11272
  #: templates/checkout/thankyou.php:68
11273
  msgid "Payment method:"
11274
  msgstr ""
11559
  msgstr ""
11560
 
11561
  #: includes/admin/meta-boxes/views/html-order-items.php:232
11562
+ #: includes/class-wc-order.php:1995
11563
  msgid "Refund"
11564
  msgstr ""
11565
 
22409
 
22410
  #: includes/wc-template-functions.php:2092 templates/cart/cart-totals.php:30
22411
  #: templates/cart/cart-totals.php:31 templates/cart/cart.php:33
22412
+ #: templates/cart/cart.php:125 templates/checkout/review-order.php:24
22413
  #: templates/checkout/review-order.php:56
22414
  msgid "Subtotal"
22415
  msgstr ""
22473
  msgid "Server requirements not met, missing requirement(s): %s."
22474
  msgstr ""
22475
 
22476
+ #: includes/wccom-site/class-wc-wccom-site-installer.php:284
22477
  msgid "Failed to retrieve product info from woocommerce.com"
22478
  msgstr ""
22479
 
22480
+ #: includes/wccom-site/class-wc-wccom-site-installer.php:296
22481
  msgid "Missing product subscription"
22482
  msgstr ""
22483
 
22484
+ #: includes/wccom-site/class-wc-wccom-site-installer.php:302
22485
  msgid "Could not find product package."
22486
  msgstr ""
22487
 
22488
+ #: includes/wccom-site/class-wc-wccom-site-installer.php:322
22489
  msgid "Could not find download url for the product."
22490
  msgstr ""
22491
 
22492
+ #: includes/wccom-site/class-wc-wccom-site-installer.php:338
22493
  msgid "Could not find download path."
22494
  msgstr ""
22495
 
22496
+ #: includes/wccom-site/class-wc-wccom-site-installer.php:355
22497
  msgid "Could not find unpacked path."
22498
  msgstr ""
22499
 
22500
+ #: includes/wccom-site/class-wc-wccom-site-installer.php:424
22501
+ #: includes/wccom-site/class-wc-wccom-site-installer.php:460
22502
  msgid "Unknown product filename."
22503
  msgstr ""
22504
 
includes/admin/helper/class-wc-helper.php CHANGED
@@ -1592,7 +1592,7 @@ class WC_Helper {
1592
  /**
1593
  * Flush subscriptions cache.
1594
  */
1595
- private static function _flush_subscriptions_cache() {
1596
  delete_transient( '_woocommerce_helper_subscriptions' );
1597
  }
1598
 
1592
  /**
1593
  * Flush subscriptions cache.
1594
  */
1595
+ public static function _flush_subscriptions_cache() {
1596
  delete_transient( '_woocommerce_helper_subscriptions' );
1597
  }
1598
 
includes/class-wc-frontend-scripts.php CHANGED
@@ -247,7 +247,7 @@ class WC_Frontend_Scripts {
247
  ),
248
  'wc-country-select' => array(
249
  'src' => self::get_asset_url( 'assets/js/frontend/country-select' . $suffix . '.js' ),
250
- 'deps' => array( 'jquery', 'selectWoo' ),
251
  'version' => WC_VERSION,
252
  ),
253
  'wc-credit-card-form' => array(
247
  ),
248
  'wc-country-select' => array(
249
  'src' => self::get_asset_url( 'assets/js/frontend/country-select' . $suffix . '.js' ),
250
+ 'deps' => array( 'jquery' ),
251
  'version' => WC_VERSION,
252
  ),
253
  'wc-credit-card-form' => array(
includes/class-wc-order.php CHANGED
@@ -1426,12 +1426,6 @@ class WC_Order extends WC_Abstract_Order {
1426
  continue;
1427
  }
1428
 
1429
- // Check item refunds.
1430
- $refunded_qty = abs( $this->get_qty_refunded_for_item( $item->get_id() ) );
1431
- if ( $refunded_qty && $item->get_quantity() === $refunded_qty ) {
1432
- continue;
1433
- }
1434
-
1435
  if ( $item->is_type( 'line_item' ) ) {
1436
  $item_downloads = $item->get_item_downloads();
1437
  $product = $item->get_product();
1426
  continue;
1427
  }
1428
 
 
 
 
 
 
 
1429
  if ( $item->is_type( 'line_item' ) ) {
1430
  $item_downloads = $item->get_item_downloads();
1431
  $product = $item->get_product();
includes/wccom-site/class-wc-wccom-site-installer.php CHANGED
@@ -123,6 +123,10 @@ class WC_WCCOM_Site_Installer {
123
  'products' => $products,
124
  );
125
 
 
 
 
 
126
  WC()->queue()->cancel_all( 'woocommerce_wccom_install_products', $args );
127
  WC()->queue()->add( 'woocommerce_wccom_install_products', $args );
128
 
@@ -257,7 +261,7 @@ class WC_WCCOM_Site_Installer {
257
  *
258
  * @since 3.7.0
259
  * @param int $product_id Product ID.
260
- * @return bool|\WP_Error
261
  */
262
  private static function get_product_info( $product_id ) {
263
  $product_info = array(
123
  'products' => $products,
124
  );
125
 
126
+ // Clear the cache of customer's subscription before asking for them.
127
+ // Thus, they will be re-fetched from WooCommerce.com after a purchase.
128
+ WC_Helper::_flush_subscriptions_cache();
129
+
130
  WC()->queue()->cancel_all( 'woocommerce_wccom_install_products', $args );
131
  WC()->queue()->add( 'woocommerce_wccom_install_products', $args );
132
 
261
  *
262
  * @since 3.7.0
263
  * @param int $product_id Product ID.
264
+ * @return array|\WP_Error
265
  */
266
  private static function get_product_info( $product_id ) {
267
  $product_info = array(
readme.txt CHANGED
@@ -264,7 +264,6 @@ INTERESTED IN DEVELOPMENT?
264
  * Fix - Use `esc_attr_e` instead of `esc_html_e` for escaping an attribute in multiple places. #24481, #24520, #24521, #24522, #24523, #24524
265
  * Fix - Use `esc_attr__` instead of `esc_html__` in escaping attributes string. #24525, #24529
266
  * Fix - Typo fix in payment captured error message. #24501
267
- * Fix - Remove broken download link for downloadable product in refund emails. #24526
268
  * Fix - Documentation URL in failed order email content. #24535
269
  * Fix - "Add to cart" links in feed. #24545
270
  * Fix - Escaping in Storefront banner. #24546
@@ -278,7 +277,6 @@ INTERESTED IN DEVELOPMENT?
278
  * Fix - Use correct meta value for `downloadable` column in product lookup table regenerate function. #24681
279
  * Fix - Admin sub-menus becoming unaligned when scrolling down in the orders page when there are no orders. #24688
280
  * Fix - OWB country and sell in person alignment. #24700
281
- * Fix - Add selectWoo as dependency of country-select. #24347
282
  * Fix - Domain replacement script now replaces both double and single quoted `woo-gutenberg-products-block` with `woocommerce` in both PHP and JavaScript files. #24696
283
  * Fix - Convert `current_user_id` to string in some places to prevent unnecessary session database updates. #24016
284
  * Fix - Fixed description of failed order emails. #24737
264
  * Fix - Use `esc_attr_e` instead of `esc_html_e` for escaping an attribute in multiple places. #24481, #24520, #24521, #24522, #24523, #24524
265
  * Fix - Use `esc_attr__` instead of `esc_html__` in escaping attributes string. #24525, #24529
266
  * Fix - Typo fix in payment captured error message. #24501
 
267
  * Fix - Documentation URL in failed order email content. #24535
268
  * Fix - "Add to cart" links in feed. #24545
269
  * Fix - Escaping in Storefront banner. #24546
277
  * Fix - Use correct meta value for `downloadable` column in product lookup table regenerate function. #24681
278
  * Fix - Admin sub-menus becoming unaligned when scrolling down in the orders page when there are no orders. #24688
279
  * Fix - OWB country and sell in person alignment. #24700
 
280
  * Fix - Domain replacement script now replaces both double and single quoted `woo-gutenberg-products-block` with `woocommerce` in both PHP and JavaScript files. #24696
281
  * Fix - Convert `current_user_id` to string in some places to prevent unnecessary session database updates. #24016
282
  * Fix - Fixed description of failed order emails. #24737
templates/cart/cart.php CHANGED
@@ -122,7 +122,7 @@ do_action( 'woocommerce_before_cart' ); ?>
122
  ?>
123
  </td>
124
 
125
- <td class="product-subtotal" data-title="<?php esc_attr_e( 'Total', 'woocommerce' ); ?>">
126
  <?php
127
  echo apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); // PHPCS: XSS ok.
128
  ?>
122
  ?>
123
  </td>
124
 
125
+ <td class="product-subtotal" data-title="<?php esc_attr_e( 'Subtotal', 'woocommerce' ); ?>">
126
  <?php
127
  echo apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); // PHPCS: XSS ok.
128
  ?>
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInita5077738e45efbaacb43ae1ee16ebced::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit3035846fcd0cd583ff5d65aaeaedb44d::getLoader();
vendor/autoload_packages.php CHANGED
@@ -120,10 +120,10 @@ if ( ! function_exists( __NAMESPACE__ . '\autoloader' ) ) {
120
  /**
121
  * Prepare all the classes for autoloading.
122
  */
123
- function enqueue_packages_938262ee803eab10dd07fca7a855cff7() {
124
  $class_map = require_once dirname( __FILE__ ) . '/composer/autoload_classmap_package.php';
125
  foreach ( $class_map as $class_name => $class_info ) {
126
  enqueue_package_class( $class_name, $class_info['version'], $class_info['path'] );
127
  }
128
  }
129
- enqueue_packages_938262ee803eab10dd07fca7a855cff7();
120
  /**
121
  * Prepare all the classes for autoloading.
122
  */
123
+ function enqueue_packages_c7312c3e78e3ff067975fb96282a319c() {
124
  $class_map = require_once dirname( __FILE__ ) . '/composer/autoload_classmap_package.php';
125
  foreach ( $class_map as $class_name => $class_info ) {
126
  enqueue_package_class( $class_name, $class_info['version'], $class_info['path'] );
127
  }
128
  }
129
+ enqueue_packages_c7312c3e78e3ff067975fb96282a319c();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInita5077738e45efbaacb43ae1ee16ebced
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInita5077738e45efbaacb43ae1ee16ebced
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInita5077738e45efbaacb43ae1ee16ebced', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInita5077738e45efbaacb43ae1ee16ebced', '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\ComposerStaticInita5077738e45efbaacb43ae1ee16ebced::getInitializer($loader));
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 ComposerAutoloaderInit3035846fcd0cd583ff5d65aaeaedb44d
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit3035846fcd0cd583ff5d65aaeaedb44d', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit3035846fcd0cd583ff5d65aaeaedb44d', '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\ComposerStaticInit3035846fcd0cd583ff5d65aaeaedb44d::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 ComposerStaticInita5077738e45efbaacb43ae1ee16ebced
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
@@ -144,9 +144,9 @@ class ComposerStaticInita5077738e45efbaacb43ae1ee16ebced
144
  public static function getInitializer(ClassLoader $loader)
145
  {
146
  return \Closure::bind(function () use ($loader) {
147
- $loader->prefixLengthsPsr4 = ComposerStaticInita5077738e45efbaacb43ae1ee16ebced::$prefixLengthsPsr4;
148
- $loader->prefixDirsPsr4 = ComposerStaticInita5077738e45efbaacb43ae1ee16ebced::$prefixDirsPsr4;
149
- $loader->classMap = ComposerStaticInita5077738e45efbaacb43ae1ee16ebced::$classMap;
150
 
151
  }, null, ClassLoader::class);
152
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit3035846fcd0cd583ff5d65aaeaedb44d
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
144
  public static function getInitializer(ClassLoader $loader)
145
  {
146
  return \Closure::bind(function () use ($loader) {
147
+ $loader->prefixLengthsPsr4 = ComposerStaticInit3035846fcd0cd583ff5d65aaeaedb44d::$prefixLengthsPsr4;
148
+ $loader->prefixDirsPsr4 = ComposerStaticInit3035846fcd0cd583ff5d65aaeaedb44d::$prefixDirsPsr4;
149
+ $loader->classMap = ComposerStaticInit3035846fcd0cd583ff5d65aaeaedb44d::$classMap;
150
 
151
  }, null, ClassLoader::class);
152
  }
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: 3.8.0-rc.1
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: 3.8.0-rc.2
7
  * Author: Automattic
8
  * Author URI: https://woocommerce.com
9
  * Text Domain: woocommerce