WooCommerce - Version 3.6.1

Version Description

  • 2019-04-18 =
  • Fix - Remove calls to 'header_register_callback' to prevent conflicts with some hosting providers and PHP versions.
Download this release

Release Info

Developer timmydcrawford
Plugin Icon 128x128 WooCommerce
Version 3.6.1
Comparing to
See all releases

Code changes from version 3.6.0 to 3.6.1

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.6.0-rc.3\n"
6
  "Report-Msgid-Bugs-To: https://github.com/woocommerce/woocommerce/issues\n"
7
- "POT-Creation-Date: 2019-04-17 13:41:21+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -20780,21 +20780,21 @@ msgstr ""
20780
  msgid "Fee has already been added."
20781
  msgstr ""
20782
 
20783
- #: includes/class-wc-cart-session.php:133
20784
  #. translators: %s: product name
20785
  msgid ""
20786
  "%s has been removed from your cart because it can no longer be purchased. "
20787
  "Please contact us if you need assistance."
20788
  msgstr ""
20789
 
20790
- #: includes/class-wc-cart-session.php:139
20791
  #. translators: %1$s: product name. %2$s product permalink
20792
  msgid ""
20793
  "%1$s has been removed from your cart because it has since been modified. "
20794
  "You can add it back to your cart <a href=\"%2$s\">here</a>."
20795
  msgstr ""
20796
 
20797
- #: includes/class-wc-cart-session.php:403
20798
  #. translators: %d item count
20799
  msgid ""
20800
  "%d item from your previous order is currently unavailable and could not be "
@@ -20805,7 +20805,7 @@ msgid_plural ""
20805
  msgstr[0] ""
20806
  msgstr[1] ""
20807
 
20808
- #: includes/class-wc-cart-session.php:416
20809
  msgid "The cart has been filled with the items from your previous order."
20810
  msgstr ""
20811
 
2
  # This file is distributed under the same license as the WooCommerce package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce 3.6.1\n"
6
  "Report-Msgid-Bugs-To: https://github.com/woocommerce/woocommerce/issues\n"
7
+ "POT-Creation-Date: 2019-04-17 23:20:15+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
20780
  msgid "Fee has already been added."
20781
  msgstr ""
20782
 
20783
+ #: includes/class-wc-cart-session.php:129
20784
  #. translators: %s: product name
20785
  msgid ""
20786
  "%s has been removed from your cart because it can no longer be purchased. "
20787
  "Please contact us if you need assistance."
20788
  msgstr ""
20789
 
20790
+ #: includes/class-wc-cart-session.php:135
20791
  #. translators: %1$s: product name. %2$s product permalink
20792
  msgid ""
20793
  "%1$s has been removed from your cart because it has since been modified. "
20794
  "You can add it back to your cart <a href=\"%2$s\">here</a>."
20795
  msgstr ""
20796
 
20797
+ #: includes/class-wc-cart-session.php:399
20798
  #. translators: %d item count
20799
  msgid ""
20800
  "%d item from your previous order is currently unavailable and could not be "
20805
  msgstr[0] ""
20806
  msgstr[1] ""
20807
 
20808
+ #: includes/class-wc-cart-session.php:412
20809
  msgid "The cart has been filled with the items from your previous order."
20810
  msgstr ""
20811
 
includes/class-wc-cart-session.php CHANGED
@@ -53,13 +53,9 @@ final class WC_Cart_Session {
53
  add_action( 'woocommerce_cart_updated', array( $this, 'persistent_cart_update' ) );
54
 
55
  // Cookie events - cart cookies need to be set before headers are sent.
56
- if ( function_exists( 'header_register_callback' ) ) {
57
- header_register_callback( array( $this, 'maybe_set_cart_cookies' ) ); // phpcs:ignore PHPCompatibility.FunctionUse.NewFunctions.header_register_callbackFound
58
- } else {
59
- add_action( 'woocommerce_add_to_cart', array( $this, 'maybe_set_cart_cookies' ) );
60
- add_action( 'wp', array( $this, 'maybe_set_cart_cookies' ), 99 );
61
- add_action( 'shutdown', array( $this, 'maybe_set_cart_cookies' ), 0 );
62
- }
63
  }
64
 
65
  /**
53
  add_action( 'woocommerce_cart_updated', array( $this, 'persistent_cart_update' ) );
54
 
55
  // Cookie events - cart cookies need to be set before headers are sent.
56
+ add_action( 'woocommerce_add_to_cart', array( $this, 'maybe_set_cart_cookies' ) );
57
+ add_action( 'wp', array( $this, 'maybe_set_cart_cookies' ), 99 );
58
+ add_action( 'shutdown', array( $this, 'maybe_set_cart_cookies' ), 0 );
 
 
 
 
59
  }
60
 
61
  /**
includes/class-woocommerce.php CHANGED
@@ -20,7 +20,7 @@ final class WooCommerce {
20
  *
21
  * @var string
22
  */
23
- public $version = '3.6.0';
24
 
25
  /**
26
  * The single instance of the class.
20
  *
21
  * @var string
22
  */
23
+ public $version = '3.6.1';
24
 
25
  /**
26
  * The single instance of the class.
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic, mikejolley, jameskoster, claudiosanches, claudiulodro,
3
  Tags: ecommerce, e-commerce, store, sales, sell, shop, cart, checkout, downloadable, downloads, paypal, storefront, woo commerce
4
  Requires at least: 4.7
5
  Tested up to: 5.1
6
- Stable tag: 3.6.0
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -158,6 +158,9 @@ Yes you can! Join in on our [GitHub repository](https://github.com/woocommerce/w
158
 
159
  == Changelog ==
160
 
 
 
 
161
  = 3.6.0 - 2019-04-17 =
162
  * Enhancement - Merged WooCommerce Gutenberg Products Block feature plugin. Adds blocks for the new editor, including
163
  hand picked products, featured products, products by category/attribute, sale products, new products, top rated
3
  Tags: ecommerce, e-commerce, store, sales, sell, shop, cart, checkout, downloadable, downloads, paypal, storefront, woo commerce
4
  Requires at least: 4.7
5
  Tested up to: 5.1
6
+ Stable tag: 3.6.1
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
158
 
159
  == Changelog ==
160
 
161
+ = 3.6.1 - 2019-04-18 =
162
+ * Fix - Remove calls to 'header_register_callback' to prevent conflicts with some hosting providers and PHP versions.
163
+
164
  = 3.6.0 - 2019-04-17 =
165
  * Enhancement - Merged WooCommerce Gutenberg Products Block feature plugin. Adds blocks for the new editor, including
166
  hand picked products, featured products, products by category/attribute, sale products, new products, top rated
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.6.0
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.6.1
7
  * Author: Automattic
8
  * Author URI: https://woocommerce.com
9
  * Text Domain: woocommerce