diff --git a/.babelrc b/.babelrc
new file mode 100644
index 00000000000..47de40687da
--- /dev/null
+++ b/.babelrc
@@ -0,0 +1,9 @@
+{
+ "presets": [
+ "es2015",
+ "stage-2"
+ ],
+ "plugins": [
+ "add-module-exports"
+ ]
+}
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index bbb79c4b372..590be3a9bf2 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -11,7 +11,7 @@ GitHub is for _bug reports and contributions only_ - if you have a support quest
- [WooExperts](https://woocommerce.com/experts/)
- [Codeable](https://codeable.io/)
-## Contributing To The Core
+## Contributing to Core
### Reporting Issues
@@ -78,7 +78,7 @@ We don’t have a Style Guide template available, so feel free to create your ow
If you created a style guide for your language, please let us know so we can add it in the list above. You can also add it by yourself by submitting a PR for this file.
-### Translating The Core
+### Translating Core
We have a [project on translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/woocommerce). You can join the localization team of your language and help by translating WooCommerce. [Find more about using joining a language team and using GlotPress](https://make.wordpress.org/polyglots/handbook/tools/glotpress-translate-wordpress-org/).
@@ -93,7 +93,7 @@ By translating video tutorials you'll be helping non-English speaking users and
# Additional Resources
* [General GitHub documentation](https://help.github.com/)
-* [GitHub pull request documentation](https://help.github.com/send-pull-requests/)
+* [GitHub pull request documentation](https://help.github.com/articles/about-pull-requests/)
* [Translator Handbook](https://make.wordpress.org/polyglots/handbook/)
* [WooCommerce Docs](https://docs.woocommerce.com/)
* [WooCommerce Support](https://support.woocommerce.com)
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index 26962a4c3c4..0d1135a372b 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -1,16 +1,18 @@
-## EXPLANATION OF THE ISSUE
+### EXPLANATION OF THE ISSUE
-## STEPS TO REPRODUCE THE ISSUE
+### STEPS TO REPRODUCE THE ISSUE
-## SYSTEM STATUS REPORT
+### SYSTEM STATUS
+
- -
- - - - 0 ) : ?> +if ( wc_get_page_id( 'shop' ) > 0 ) : ?> '; ?> - + diff --git a/templates/cart/cart-totals.php b/templates/cart/cart-totals.php index d6f9591ad54..3084cee5215 100644 --- a/templates/cart/cart-totals.php +++ b/templates/cart/cart-totals.php @@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) { } ?> -: cart->get_cart_subtotal(); ?>
+: cart->get_cart_subtotal(); ?>
- + + + + + diff --git a/templates/cart/shipping-calculator.php b/templates/cart/shipping-calculator.php index 1bacd212b2f..08e7cf2aef8 100644 --- a/templates/cart/shipping-calculator.php +++ b/templates/cart/shipping-calculator.php @@ -38,8 +38,9 @@ if ( 'no' === get_option( 'woocommerce_enable_shipping_calc' ) || ! WC()->cart-> @@ -62,8 +63,9 @@ if ( 'no' === get_option( 'woocommerce_enable_shipping_calc' ) || ! WC()->cart-> get_checkout_fields( 'account' ) ) : ?>diff --git a/templates/content-product.php b/templates/content-product.php index 42ba59bee6f..bc8204642b8 100644 --- a/templates/content-product.php +++ b/templates/content-product.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 2.6.1 + * @version 3.0.0 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/templates/content-single-product.php b/templates/content-single-product.php index 5058a1ffefc..31404e7bda4 100644 --- a/templates/content-single-product.php +++ b/templates/content-single-product.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates - * @version 1.6.4 + * @version 3.0.0 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/templates/emails/email-addresses.php b/templates/emails/email-addresses.php index 01d961d2671..879123c9822 100644 --- a/templates/emails/email-addresses.php +++ b/templates/emails/email-addresses.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates/Emails - * @version 2.4.0 + * @version 3.0.0 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/templates/emails/email-order-details.php b/templates/emails/email-order-details.php index b586dff9fc4..29085ff34b7 100644 --- a/templates/emails/email-order-details.php +++ b/templates/emails/email-order-details.php @@ -13,7 +13,7 @@ * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates/Emails - * @version 2.5.0 + * @version 3.0.0 */ if ( ! defined( 'ABSPATH' ) ) { diff --git a/templates/emails/email-styles.php b/templates/emails/email-styles.php index 1a8b3917aba..703d629e0d4 100644 --- a/templates/emails/email-styles.php +++ b/templates/emails/email-styles.php @@ -10,13 +10,15 @@ * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * - * @see https://docs.woocommerce.com/document/template-structure/ + * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates/Emails * @version 2.3.0 */ -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly +} // Load colors $bg = get_option( 'woocommerce_email_background_color' ); @@ -95,6 +97,22 @@ $text_lighter_20 = wc_hex_lighter( $text, 20 ); padding: 12px; } +#body_content td ul.wc-item-meta { + font-size: small; + margin: 1em 0 0; + padding: 0; + list-style: none; +} + +#body_content td ul.wc-item-meta li { + margin: 0.5em 0 0; + padding: 0; +} + +#body_content td ul.wc-item-meta li p { + margin: 0; +} + #body_content p { margin: 0 0 16px; } diff --git a/templates/emails/plain/customer-new-account.php b/templates/emails/plain/customer-new-account.php index 0f4efb903f0..82180ab4454 100644 --- a/templates/emails/plain/customer-new-account.php +++ b/templates/emails/plain/customer-new-account.php @@ -24,8 +24,9 @@ echo "= " . $email_heading . " =\n\n"; echo sprintf( __( 'Thanks for creating an account on %1$s. Your username is %2$s', 'woocommerce' ), $blogname, '' . $user_login . '' ) . "\n\n"; -if ( 'yes' === get_option( 'woocommerce_registration_generate_password' ) && $password_generated ) +if ( 'yes' === get_option( 'woocommerce_registration_generate_password' ) && $password_generated ) { echo sprintf( __( 'Your password is %s.', 'woocommerce' ), '' . $user_pass . '' ) . "\n\n"; +} echo sprintf( __( 'You can access your account area to view your orders and change your password here: %s.', 'woocommerce' ), wc_get_page_permalink( 'myaccount' ) ) . "\n\n"; diff --git a/templates/global/form-login.php b/templates/global/form-login.php index 33faf93ecc3..82793796c48 100644 --- a/templates/global/form-login.php +++ b/templates/global/form-login.php @@ -25,11 +25,11 @@ if ( is_user_logged_in() ) { } ?> -