Changeset 2545901
- Timestamp:
- 06/10/2021 10:57:24 PM (5 years ago)
- Location:
- woocommerce-gateway-stripe
- Files:
-
- 10 edited
- 1 copied
-
tags/5.2.2 (copied) (copied from woocommerce-gateway-stripe/trunk)
-
tags/5.2.2/changelog.txt (modified) (1 diff)
-
tags/5.2.2/includes/payment-methods/class-wc-stripe-payment-request.php (modified) (2 diffs)
-
tags/5.2.2/languages/woocommerce-gateway-stripe.pot (modified) (4 diffs)
-
tags/5.2.2/readme.txt (modified) (2 diffs)
-
tags/5.2.2/woocommerce-gateway-stripe.php (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/payment-methods/class-wc-stripe-payment-request.php (modified) (2 diffs)
-
trunk/languages/woocommerce-gateway-stripe.pot (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocommerce-gateway-stripe.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-gateway-stripe/tags/5.2.2/changelog.txt
r2545800 r2545901 1 1 *** Changelog *** 2 3 = 5.2.2 - 2021-06-10 = 4 * Fix - The absence of a cart causing fatal errors when rendering the Cart or Checkout block. 2 5 3 6 = 5.2.1 - 2021-06-10 = -
woocommerce-gateway-stripe/tags/5.2.2/includes/payment-methods/class-wc-stripe-payment-request.php
r2545800 r2545901 584 584 */ 585 585 public function javascript_params() { 586 $needs_shipping = 'no'; 587 if ( ! is_null( WC()->cart ) && WC()->cart->needs_shipping() ) { 588 $needs_shipping = 'yes'; 589 } 590 586 591 return [ 587 592 'ajax_url' => WC_AJAX::get_endpoint( '%%endpoint%%' ), … … 609 614 'currency_code' => strtolower( get_woocommerce_currency() ), 610 615 'country_code' => substr( get_option( 'woocommerce_default_country' ), 0, 2 ), 611 'needs_shipping' => WC()->cart->needs_shipping() ? 'yes' : 'no',616 'needs_shipping' => $needs_shipping, 612 617 // Defaults to 'required' to match how core initializes this option. 613 618 'needs_payer_phone' => 'required' === get_option( 'woocommerce_checkout_phone_field', 'required' ), -
woocommerce-gateway-stripe/tags/5.2.2/languages/woocommerce-gateway-stripe.pot
r2545800 r2545901 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Stripe Gateway 5.2. 1\n"5 "Project-Id-Version: WooCommerce Stripe Gateway 5.2.2\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n" 8 "POT-Creation-Date: 2021-06-10 19:04:19+00:00\n"8 "POT-Creation-Date: 2021-06-10 22:57:05+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 1742 1742 1743 1743 #: includes/payment-methods/class-wc-stripe-payment-request.php:362 1744 #: includes/payment-methods/class-wc-stripe-payment-request.php:109 21745 #: includes/payment-methods/class-wc-stripe-payment-request.php:152 21744 #: includes/payment-methods/class-wc-stripe-payment-request.php:1097 1745 #: includes/payment-methods/class-wc-stripe-payment-request.php:1527 1746 1746 msgid "Tax" 1747 1747 msgstr "" 1748 1748 1749 1749 #: includes/payment-methods/class-wc-stripe-payment-request.php:370 1750 #: includes/payment-methods/class-wc-stripe-payment-request.php:110 01751 #: includes/payment-methods/class-wc-stripe-payment-request.php:15 291750 #: includes/payment-methods/class-wc-stripe-payment-request.php:1105 1751 #: includes/payment-methods/class-wc-stripe-payment-request.php:1534 1752 1752 msgid "Shipping" 1753 1753 msgstr "" 1754 1754 1755 1755 #: includes/payment-methods/class-wc-stripe-payment-request.php:377 1756 #: includes/payment-methods/class-wc-stripe-payment-request.php:11 071756 #: includes/payment-methods/class-wc-stripe-payment-request.php:1112 1757 1757 msgid "Pending" 1758 1758 msgstr "" 1759 1759 1760 #: includes/payment-methods/class-wc-stripe-payment-request.php:60 31760 #: includes/payment-methods/class-wc-stripe-payment-request.php:608 1761 1761 msgid "Sorry, we're not accepting prepaid cards at this time." 1762 1762 msgstr "" 1763 1763 1764 #: includes/payment-methods/class-wc-stripe-payment-request.php:6 051764 #: includes/payment-methods/class-wc-stripe-payment-request.php:610 1765 1765 #. translators: Do not translate the [option] placeholder 1766 1766 msgid "Unknown shipping option \"[option]\"." 1767 1767 msgstr "" 1768 1768 1769 #: includes/payment-methods/class-wc-stripe-payment-request.php:7 481769 #: includes/payment-methods/class-wc-stripe-payment-request.php:753 1770 1770 msgid "OR" 1771 1771 msgstr "" 1772 1772 1773 #: includes/payment-methods/class-wc-stripe-payment-request.php:94 11774 #: includes/payment-methods/class-wc-stripe-payment-request.php:95 41773 #: includes/payment-methods/class-wc-stripe-payment-request.php:946 1774 #: includes/payment-methods/class-wc-stripe-payment-request.php:959 1775 1775 msgid "Unable to find shipping method for address." 1776 1776 msgstr "" 1777 1777 1778 #: includes/payment-methods/class-wc-stripe-payment-request.php:105 41778 #: includes/payment-methods/class-wc-stripe-payment-request.php:1059 1779 1779 #. translators: %d is the product Id 1780 1780 msgid "Product with the ID (%d) cannot be found." 1781 1781 msgstr "" 1782 1782 1783 #: includes/payment-methods/class-wc-stripe-payment-request.php:10 751783 #: includes/payment-methods/class-wc-stripe-payment-request.php:1080 1784 1784 #. translators: 1: product name 2: quantity in stock 1785 1785 msgid "" … … 1788 1788 msgstr "" 1789 1789 1790 #: includes/payment-methods/class-wc-stripe-payment-request.php:13 471790 #: includes/payment-methods/class-wc-stripe-payment-request.php:1352 1791 1791 #. translators: %s: country. 1792 1792 msgid "" … … 1796 1796 msgstr "" 1797 1797 1798 #: includes/payment-methods/class-wc-stripe-payment-request.php:136 31798 #: includes/payment-methods/class-wc-stripe-payment-request.php:1368 1799 1799 msgid "Empty cart" 1800 1800 msgstr "" 1801 1801 1802 #: includes/payment-methods/class-wc-stripe-payment-request.php:15 361802 #: includes/payment-methods/class-wc-stripe-payment-request.php:1541 1803 1803 msgid "Discount" 1804 1804 msgstr "" -
woocommerce-gateway-stripe/tags/5.2.2/readme.txt
r2545800 r2545901 5 5 Tested up to: 5.6 6 6 Requires PHP: 5.6 7 Stable tag: 5.2. 17 Stable tag: 5.2.2 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 127 127 == Changelog == 128 128 129 = 5.2. 1- 2021-06-10 =129 = 5.2.2 - 2021-06-10 = 130 130 131 * Fix - Remove calls to `has_block()` since it breaks compatibility with older versions of WordPress. 132 * Tweak - Use the same JavaScript configurations for the Block-based and Shortcode-based checkout flows. 131 * Fix - The absence of a cart causing fatal errors when rendering the Cart or Checkout block. 133 132 -
woocommerce-gateway-stripe/tags/5.2.2/woocommerce-gateway-stripe.php
r2545800 r2545901 6 6 * Author: WooCommerce 7 7 * Author URI: https://woocommerce.com/ 8 * Version: 5.2. 18 * Version: 5.2.2 9 9 * Requires at least: 4.4 10 10 * Tested up to: 5.6 … … 22 22 * Required minimums and constants 23 23 */ 24 define( 'WC_STRIPE_VERSION', '5.2. 1' ); // WRCS: DEFINED_VERSION.24 define( 'WC_STRIPE_VERSION', '5.2.2' ); // WRCS: DEFINED_VERSION. 25 25 define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' ); 26 26 define( 'WC_STRIPE_MIN_WC_VER', '3.0' ); -
woocommerce-gateway-stripe/trunk/changelog.txt
r2545800 r2545901 1 1 *** Changelog *** 2 3 = 5.2.2 - 2021-06-10 = 4 * Fix - The absence of a cart causing fatal errors when rendering the Cart or Checkout block. 2 5 3 6 = 5.2.1 - 2021-06-10 = -
woocommerce-gateway-stripe/trunk/includes/payment-methods/class-wc-stripe-payment-request.php
r2545800 r2545901 584 584 */ 585 585 public function javascript_params() { 586 $needs_shipping = 'no'; 587 if ( ! is_null( WC()->cart ) && WC()->cart->needs_shipping() ) { 588 $needs_shipping = 'yes'; 589 } 590 586 591 return [ 587 592 'ajax_url' => WC_AJAX::get_endpoint( '%%endpoint%%' ), … … 609 614 'currency_code' => strtolower( get_woocommerce_currency() ), 610 615 'country_code' => substr( get_option( 'woocommerce_default_country' ), 0, 2 ), 611 'needs_shipping' => WC()->cart->needs_shipping() ? 'yes' : 'no',616 'needs_shipping' => $needs_shipping, 612 617 // Defaults to 'required' to match how core initializes this option. 613 618 'needs_payer_phone' => 'required' === get_option( 'woocommerce_checkout_phone_field', 'required' ), -
woocommerce-gateway-stripe/trunk/languages/woocommerce-gateway-stripe.pot
r2545800 r2545901 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Stripe Gateway 5.2. 1\n"5 "Project-Id-Version: WooCommerce Stripe Gateway 5.2.2\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/woocommerce-gateway-stripe\n" 8 "POT-Creation-Date: 2021-06-10 19:04:19+00:00\n"8 "POT-Creation-Date: 2021-06-10 22:57:05+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 1742 1742 1743 1743 #: includes/payment-methods/class-wc-stripe-payment-request.php:362 1744 #: includes/payment-methods/class-wc-stripe-payment-request.php:109 21745 #: includes/payment-methods/class-wc-stripe-payment-request.php:152 21744 #: includes/payment-methods/class-wc-stripe-payment-request.php:1097 1745 #: includes/payment-methods/class-wc-stripe-payment-request.php:1527 1746 1746 msgid "Tax" 1747 1747 msgstr "" 1748 1748 1749 1749 #: includes/payment-methods/class-wc-stripe-payment-request.php:370 1750 #: includes/payment-methods/class-wc-stripe-payment-request.php:110 01751 #: includes/payment-methods/class-wc-stripe-payment-request.php:15 291750 #: includes/payment-methods/class-wc-stripe-payment-request.php:1105 1751 #: includes/payment-methods/class-wc-stripe-payment-request.php:1534 1752 1752 msgid "Shipping" 1753 1753 msgstr "" 1754 1754 1755 1755 #: includes/payment-methods/class-wc-stripe-payment-request.php:377 1756 #: includes/payment-methods/class-wc-stripe-payment-request.php:11 071756 #: includes/payment-methods/class-wc-stripe-payment-request.php:1112 1757 1757 msgid "Pending" 1758 1758 msgstr "" 1759 1759 1760 #: includes/payment-methods/class-wc-stripe-payment-request.php:60 31760 #: includes/payment-methods/class-wc-stripe-payment-request.php:608 1761 1761 msgid "Sorry, we're not accepting prepaid cards at this time." 1762 1762 msgstr "" 1763 1763 1764 #: includes/payment-methods/class-wc-stripe-payment-request.php:6 051764 #: includes/payment-methods/class-wc-stripe-payment-request.php:610 1765 1765 #. translators: Do not translate the [option] placeholder 1766 1766 msgid "Unknown shipping option \"[option]\"." 1767 1767 msgstr "" 1768 1768 1769 #: includes/payment-methods/class-wc-stripe-payment-request.php:7 481769 #: includes/payment-methods/class-wc-stripe-payment-request.php:753 1770 1770 msgid "OR" 1771 1771 msgstr "" 1772 1772 1773 #: includes/payment-methods/class-wc-stripe-payment-request.php:94 11774 #: includes/payment-methods/class-wc-stripe-payment-request.php:95 41773 #: includes/payment-methods/class-wc-stripe-payment-request.php:946 1774 #: includes/payment-methods/class-wc-stripe-payment-request.php:959 1775 1775 msgid "Unable to find shipping method for address." 1776 1776 msgstr "" 1777 1777 1778 #: includes/payment-methods/class-wc-stripe-payment-request.php:105 41778 #: includes/payment-methods/class-wc-stripe-payment-request.php:1059 1779 1779 #. translators: %d is the product Id 1780 1780 msgid "Product with the ID (%d) cannot be found." 1781 1781 msgstr "" 1782 1782 1783 #: includes/payment-methods/class-wc-stripe-payment-request.php:10 751783 #: includes/payment-methods/class-wc-stripe-payment-request.php:1080 1784 1784 #. translators: 1: product name 2: quantity in stock 1785 1785 msgid "" … … 1788 1788 msgstr "" 1789 1789 1790 #: includes/payment-methods/class-wc-stripe-payment-request.php:13 471790 #: includes/payment-methods/class-wc-stripe-payment-request.php:1352 1791 1791 #. translators: %s: country. 1792 1792 msgid "" … … 1796 1796 msgstr "" 1797 1797 1798 #: includes/payment-methods/class-wc-stripe-payment-request.php:136 31798 #: includes/payment-methods/class-wc-stripe-payment-request.php:1368 1799 1799 msgid "Empty cart" 1800 1800 msgstr "" 1801 1801 1802 #: includes/payment-methods/class-wc-stripe-payment-request.php:15 361802 #: includes/payment-methods/class-wc-stripe-payment-request.php:1541 1803 1803 msgid "Discount" 1804 1804 msgstr "" -
woocommerce-gateway-stripe/trunk/readme.txt
r2545800 r2545901 5 5 Tested up to: 5.6 6 6 Requires PHP: 5.6 7 Stable tag: 5.2. 17 Stable tag: 5.2.2 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 127 127 == Changelog == 128 128 129 = 5.2. 1- 2021-06-10 =129 = 5.2.2 - 2021-06-10 = 130 130 131 * Fix - Remove calls to `has_block()` since it breaks compatibility with older versions of WordPress. 132 * Tweak - Use the same JavaScript configurations for the Block-based and Shortcode-based checkout flows. 131 * Fix - The absence of a cart causing fatal errors when rendering the Cart or Checkout block. 133 132 -
woocommerce-gateway-stripe/trunk/woocommerce-gateway-stripe.php
r2545800 r2545901 6 6 * Author: WooCommerce 7 7 * Author URI: https://woocommerce.com/ 8 * Version: 5.2. 18 * Version: 5.2.2 9 9 * Requires at least: 4.4 10 10 * Tested up to: 5.6 … … 22 22 * Required minimums and constants 23 23 */ 24 define( 'WC_STRIPE_VERSION', '5.2. 1' ); // WRCS: DEFINED_VERSION.24 define( 'WC_STRIPE_VERSION', '5.2.2' ); // WRCS: DEFINED_VERSION. 25 25 define( 'WC_STRIPE_MIN_PHP_VER', '5.6.0' ); 26 26 define( 'WC_STRIPE_MIN_WC_VER', '3.0' );
Note: See TracChangeset
for help on using the changeset viewer.