Commit Graph

2248 Commits

Author SHA1 Message Date
claudiulodro 2fed9b94a3 Remove duplicate sanitizing 2018-11-30 08:49:43 -08:00
claudiulodro 2bccd4899a Revise to make code cleaner 2018-11-30 08:49:43 -08:00
claudiulodro d1533261f5 Extra sanitizing around payment_method_title 2018-11-30 08:49:43 -08:00
Fulvio Notarstefano 3c4f0db9cc Make shipping may estimate text filterable 2018-11-29 17:16:22 +08:00
Fulvio Notarstefano 1d2700e42f Make shipping may be available text filterable 2018-11-29 14:19:20 +08:00
Rodrigo Primo a096e2729a
Merge pull request #21936 from woocommerce/fix/21878
Use wp_kses_post for sanitizing product names instead of esc_html
2018-11-22 10:54:57 -02:00
Bradley Davis 7481af8614 [ UPDATE ] inline PHP semicolon and spacing 2018-11-22 20:37:14 +10:00
Claudiu Lodromanean b85598a576
Merge pull request #22001 from woocommerce/fix/21792
Fix missing lost password notices
2018-11-21 13:06:39 -08:00
Gerhard Potgieter 7c7f0725ef Update new account email copy to be representative of auto generated accounts also. (#21999)
* Update customer new account email copy to be more friendly for auto generated usernames.

* Bump template versions
2018-11-21 15:27:33 -02:00
Gerhard f58fcf6b3b Add woocommerce_before_lost_password_form and woocommerce_after_lost_password_form actions and hook into woocommerce_output_all_notices 2018-11-21 10:32:28 +02:00
Gerhard 097861605e Update translators comment to reflect true variable 2018-11-19 11:38:30 +02:00
Mahdi Yazdani ac298674c7
Updated conditional statements to Yoda style
Updated both user registration conditional statements to [Yoda](https://en.wikipedia.org/wiki/Yoda_conditions) style.
2018-11-18 01:16:51 +04:00
claudiulodro d09e9eb95c Use wp_kses_post for sanitizing product names instead of esc_html 2018-11-15 11:42:22 -08:00
Gerhard 2db7197d38 Revert parts of #20881. Passing html through wp_kses_post will strip out things like data attributes on allowed elements. 2018-11-15 15:04:37 +02:00
Gerhard 6b9f283d6d Make the note clickable in the email as well. 2018-11-15 14:30:58 +02:00
Claudiu Lodromanean d3c67b675b
Merge pull request #21879 from mcary/fix-this-in-invoice
Fix error when rendering customer invoice email
2018-11-14 15:08:13 -05:00
Ron Rennick 60e3918953 fix coding standards in templates/single-product-reviews.php 2018-11-14 15:20:19 -04:00
Ron Rennick 177145b6a5 Introduce `woocommerce_reviews_title` filter 2018-11-14 14:41:56 -04:00
Marcel M. Cary a0cb6a9166 Fix error when rendering customer invoice email
When sending a customer their invoice on a non-pending order, I get this
error in the logs:

    PHP Fatal error: Uncaught Error: Using $this when not in object context in
    wp-content/plugins/woocommerce/templates/emails/plain/customer-invoice.php:37

    Stack trace:
    #0 wp-content/plugins/woocommerce/includes/wc-core-functions.php(208): include()
    #1 wp-content/plugins/woocommerce/includes/wc-core-functions.php(228): wc_get_template('emails/plain/cu...', Array, '', '')
    #2 wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-invoice.php(165): wc_get_template_html('emails/plain/cu...', Array)
    #3 wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(502): WC_Email_Customer_Invoice->get_content_plain()
    #4 wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-invoice.php(130): WC_Email->get_content()
    #5 wp-content/plugins/woocommerce/includes/class-wc-emails.php(338): WC_Email_Customer_Invoice->trigger(288402, Object(WC_Order))
    #6 wp-content/plugins/woocommerce/templates/emails/plain/customer-invoice.php on line 37
    referer: wp-admin/post.php?post=nnnnnn&action=edit

Change the "$this->object" reference to "$order" instead.
2018-11-10 14:07:55 -08:00
Ron Rennick b5d52909e2 update lost password filter name in password confirmation template 2018-11-06 10:47:06 -04:00
dixitadusara 2613770f09 remove Over to you text from admin order confirmation email 2018-10-27 13:02:05 +05:30
nishitlangaliya cbcd647a34 Merge branch 'master' of https://github.com/woocommerce/woocommerce into HEAD
# Conflicts:
#	.github/CONTRIBUTING.md
#	includes/gateways/cod/class-wc-gateway-cod.php
#	includes/wc-formatting-functions.php
#	templates/single-product/product-image.php
2018-10-27 12:14:09 -08:00
Kathy Darling 5c722a32e8 Add support for custom classes on quantity input with new woocommerce_quantity_input_classes filter 2018-10-13 22:22:17 -05:00
Frédéric Demarle 4e636b4b31 Fix payment url in plain customer invoice email 2018-10-04 21:00:52 +02:00
béla 850ff9ea25
email styles beautification 2018-10-04 11:21:56 +02:00
Claudiu Lodromanean 4cbdcf2d1b
Merge pull request #21439 from Prospress/escape-gateway-attributes
consistently escape gateway ID in payment method template
2018-10-03 13:43:13 -04:00
Ron Rennick 357d47a28c update template version 2018-10-03 12:05:12 -03:00
Ron Rennick 8c893b2112 use correct rule name in ignore 2018-10-02 14:38:12 -03:00
Ron Rennick e4c3966852 add second phpcs: ignore 2018-10-02 08:46:16 -03:00
Ron Rennick cdf036454f add spaces, remove @author, change control structure 2018-10-01 22:02:06 -03:00
Ron Rennick f3909c00e8 fix/add exceptions for existing coding standard violations 2018-10-01 09:08:18 -03:00
Claudio Sanches 819d03fe3f Updated "--" to "—"
Closes #21460
2018-09-28 12:52:38 -03:00
claudiulodro 4082222f7a Add inline float style for email label to match order details styling 2018-09-26 11:13:29 -07:00
Kevin 9e01b0dfe2
Update order of remember me and submit button
Have the same structure and logic as wp-login.php - Seems more logic to have the checkbox of Remember me before the Login button.
2018-09-26 18:58:59 +02:00
Ron Rennick e6de32eeb3 consistently escape gateway ID in payment method template 2018-09-25 16:04:09 -03:00
Gerhard Potgieter e92256309e Update template version number for template changes in efe06cb147 2018-09-25 12:09:01 +02:00
pierrebuet 4bed2ddeea Correct spaces 2018-09-24 21:45:55 +02:00
pierrebuet db3270a390 Show the right size of placeholder image on single product page
in the template for the product image, wc_placeholder_img_src() returns the thumbnail size of the image.
In order to use 'woocommerce_single' as size, the function needs to be corrected, so the function use the size and not a calculated array of sizes.  wc_get_image_size doesn't return an height for the woocommerce_single size. Further and since the image sizes are declared, there is no need to translate the size to an array.
2018-09-21 19:33:04 +02:00
unknown f4c418fa72 New function hooked 2018-09-20 09:23:42 +03:00
Claudiu Lodromanean 07351d5e11
Merge pull request #21288 from woocommerce/update/humanize-emails
Humanize emails
2018-09-12 07:51:07 -07:00
Gerhard Potgieter 5f7b833844 Add missing # before order numbers and escape properly 2018-09-12 12:24:27 +02:00
Gerhard Potgieter d7cb15c8f8 Update email copy based on https://github.com/woocommerce/woocommerce/pull/21288#issuecomment-420251277 2018-09-12 11:30:53 +02:00
Gerhard Potgieter 3b57bf7051 Fix invoice escaping 2018-09-07 09:54:31 +02:00
Gerhard Potgieter c3d9ef1cab Fix missing paramater passing for reset password emails and fix sanitisation 2018-09-07 08:59:23 +02:00
Gerhard Potgieter 6305fe3059 Use user_login on new account emails, no order object present there. 2018-09-07 08:45:10 +02:00
Gerhard Potgieter b52eef4454 Fix usage of get_first_name to correct get_billing_first_name 2018-09-07 08:40:45 +02:00
Claudiu Lodromanean 35feb7aa92
Merge pull request #21261 from franticpsyx/remove-mini-cart-template-space
Remove unnecessary space in mini-cart template
2018-09-06 12:00:10 -07:00
Manos Psychogyiopoulos d4f6d173d5 Bump template version 2018-09-06 21:05:31 +03:00
Gerhard Potgieter 866aab0ead New accout email copy changes 2018-09-06 14:38:43 +02:00
Gerhard Potgieter cf03db7392 Update customer reset password email copy 2018-09-06 14:18:09 +02:00
Gerhard Potgieter 68b5fbe279 Customer note email copy changes 2018-09-06 13:58:56 +02:00
Gerhard Potgieter 9361aaa05b Update invoice emails copy 2018-09-06 13:48:40 +02:00
Gerhard Potgieter fac659c9c6 Update refunded emails copy 2018-09-06 13:24:28 +02:00
Gerhard Potgieter 84b935490d Update completed email copy 2018-09-06 13:11:58 +02:00
Gerhard Potgieter 52190bc5ce Update closing line to correct text 2018-09-06 13:01:20 +02:00
Gerhard Potgieter 5eaa6da98b Update processing emails copy 2018-09-06 13:00:21 +02:00
Gerhard Potgieter 697e3229f2 Update on-hold emails copy 2018-09-06 12:48:39 +02:00
Gerhard Potgieter b03e5cff45 Failed admin email changes 2018-09-06 12:30:33 +02:00
Robert DeVore 348307eb5e
Update spacing 2018-09-04 14:20:14 -04:00
Robert DeVore e4ec0cb148
Spacing update 2018-09-04 14:19:28 -04:00
Manos Psychogyiopoulos 74ca1ebe6a Remove unnecessary space in mini-cart template 2018-09-03 13:50:48 +03:00
Robert DeVore 4a71ce4659 Add action hook to register form tag 2018-09-01 11:24:33 -04:00
Robert DeVore 03900a43cb Add action hook to edit account form tag 2018-09-01 11:24:04 -04:00
Raymond Johnson 5ee8a794f0
Add consistent classes to order tracking form. 2018-08-30 17:53:32 -05:00
Farhad Sakhaei a22218f5f9
Update single-product-reviews.php 2018-08-29 00:25:03 +04:30
Farhad Sakhaei 7c3a3503ff
unnecessary aria-required for elements that have required
Attribute aria-required is unnecessary for elements that have attribute required.
2018-08-28 13:05:40 +04:30
Peter Fabian 0d29e5d88f PHPCS fix. 2018-08-23 14:31:53 +02:00
Gerhard Potgieter 2ce1262f69 Humanize admin cancelled order emails 2018-08-23 09:38:16 +02:00
Gerhard Potgieter 679399b4b2 Humanize admin new order email 2018-08-23 09:04:24 +02:00
Peter Fabian ae05d6e5ea Removed author tag and bumped version of templates to 3.5.0, factored out function to one common place. 2018-08-21 11:47:50 +02:00
Peter Fabian ac550e9d37 PHPCS. 2018-08-20 18:38:53 +02:00
Peter Fabian c2b8cc73c0 Added support for changing tabindex for notices. 2018-08-20 18:35:17 +02:00
Gerhard Potgieter 87cfc646f4
Fix PHPCS errors (#21009) 2018-08-08 11:19:36 +02:00
Gerhard Potgieter 7db8940d2d
Merge pull request #20982 from shabnam611/fix/20943
Fix for issue 20943: Removed unnecessary php tag [point 2] and removed a return false stat…
2018-08-08 10:51:31 +02:00
Shabnam 722c21066f changed version to 3.5.0 and adjusted the curly brace 2018-08-08 13:27:54 +06:00
Gerhard Potgieter 15f037aad4
Merge pull request #20881 from woocommerce/fix/20880
Check if $product is an instance of WC_Product before using its methods
2018-08-07 10:42:27 +02:00
Shabnam 4affbff47e removed unnecessary php tag [point 2] and removed a return false statement[point 3] 2018-08-04 19:51:25 +06:00
Claudiu Lodromanean b76667796a
Merge pull request #20886 from woocommerce/fix/20871
Re-add woocommerce_order_details_after_customer_details_filter
2018-07-25 08:39:43 -07:00
claudiulodro 737dbbf36a phpcs fixes 2018-07-25 08:05:01 -07:00
Gerhard Potgieter 8af8a77572 Bump template version 2018-07-25 08:04:25 +02:00
Gerhard Potgieter 9e207c9c11 You can apply more than one coupon, make sure to not hide the form when a coupon is already applied. 2018-07-25 08:03:17 +02:00
claudiulodro 46b5794d63 Re-add woocommerce_order_details_after_customer_details_filter 2018-07-24 12:53:29 -07:00
Rodrigo Primo 558408da28 Check if $product is an instance of WC_Product before using its methods
Doing this to protect against the fatal error reported in issue #20880. I was not able to reproduce this problem but adding this check is probably a good idea anyway.
2018-07-24 11:00:37 -03:00
Rodrigo Primo 4ceee4cfc9 Fix phpcs violations 2018-07-24 10:50:19 -03:00
Mike Jolley 2a87c2db70 Correct version 2018-06-22 13:43:14 +01:00
Mike Jolley 1f1d8734d0 Pass link to template file to avoid logic inside template 2018-06-22 10:40:39 +01:00
Mike Jolley 588be3a780 merge master 2018-06-11 13:46:04 +01:00
Mike Jolley 4df54b4e53 Merge branch 'master' 2018-06-07 11:24:12 +01:00
John Russell bfde29d991 Pass product ID for customized backorder notifications (#20416)
Add product id to the backorder notificaiton in case of customized
notification based on product_id
2018-06-07 10:25:37 +01:00
Isaac Lubow 7df513769d Update terms.php (#20376)
Edited comment to reflect the name of the function that is actually hooked.
2018-06-05 13:35:37 +01:00
Mike Jolley a1f927d4f7 Include detination in shipping template 2018-06-01 21:30:01 +01:00
Mike Jolley 46bc411c46 Custom button text 2018-06-01 21:29:45 +01:00
Mike Jolley c74540fb1e
Merge pull request #20046 from woocommerce/feature/custom-shipping-calc-data
Allows manipulate cart shipping calculator data
2018-05-30 16:00:21 +01:00
Mike Jolley 301e9339a9 Move selected logic to function 2018-05-29 14:31:50 +01:00
Mike Jolley 70e3218a94
Merge pull request #20190 from james-allan/add_action_after_cart_item_title
Add an action hook after printing the cart item name
2018-05-25 11:46:20 +01:00
James Kemp 16785b33ab Do not escape HTML for attribute label 2018-05-24 15:29:53 +01:00
James Allan c1d06b473d Add an action hook after printing the cart item name 2018-05-24 14:08:27 +10:00
Mike Jolley 6e0d0fe6ed Simplify code in template 2018-05-22 10:53:33 +01:00
Mike Jolley 7fc75897cd Use GET in external product form 2018-05-18 22:16:59 +01:00
Mike Jolley 2812408665
Merge pull request #20129 from wayheming/master
File version
2018-05-18 14:49:54 +01:00
Ernest 5a01f0edc6 File version 2018-05-18 15:09:50 +03:00
Mike Jolley 6a1898455b Remove hardcoded border in email template 2018-05-16 00:14:29 +01:00
Claudio Sanches aa814c294b Allows manipulate cart shipping calculator data
Introduces woocommerce_cart_calculate_shipping_address and
woocommerce_shipping_calculator_enable_country to allow full control in
the cart shipping calculator fields
2018-05-11 13:26:34 -03:00
Claudiu Lodromanean 7a6b0d8cf5
Merge pull request #19934 from woocommerce/fix/19819
Add protocol to URLs for thumbnails in cart.
2018-05-09 10:09:17 -07:00
claudiulodro 2bd5feb51d Rename variable to prevent name collision 2018-05-08 14:14:32 -07:00
Mike Jolley 06ef8c8589 Hook doc update 2018-05-02 14:28:53 +01:00
Peter Fabian 8789642fb9 Add protocol to URLs for thumbnails in cart.
Removed wc_get_relative_url(), as it's not used anymore.
2018-05-02 14:34:50 +02:00
Mike Jolley efe06cb147 Remove direct calls to wc_print_notices 2018-04-19 18:26:21 +01:00
Michael Tieso f7ef8a5611
Typo
Introducing the most epic PR. You're welcome :)
2018-04-19 11:44:20 +02:00
Mike Jolley 718c91f920
Merge pull request #19639 from woocommerce/fix/19620
Introduced new wc_get_product_class() and wc_product_class()
2018-04-17 17:00:43 +01:00
Mike Jolley da17e4a174
Merge pull request #19711 from wayheming/master
Recent Product Reviews template
2018-04-17 16:53:55 +01:00
Claudio Sanches 933bcc32c3
Merge branch 'master' into fix/19620 2018-04-17 12:45:20 -03:00
Claudiu Lodromanean ed2cb3e562
Merge pull request #19666 from woocommerce/update/19654
Consistent cart forms and woocommerce_after_add_to_cart_button placement
2018-04-17 07:40:52 -07:00
claudiulodro 7342807674 Update comments 2018-04-16 11:17:39 -07:00
Mike Jolley 860e7a5d23 Merge branch 'master' into update/gdpr-checkout-customizer 2018-04-16 18:02:28 +01:00
Mike Jolley 8a19c5962b Further simplified customiser options 2018-04-16 17:56:44 +01:00
Ernest 0d70b3b34e Recent Product Reviews template 2018-04-13 14:20:46 +03:00
Mike Jolley cdd5b25bd8 Privacy page and default text handling 2018-04-11 16:41:39 +01:00
Mike Jolley 2464a94920 Indent 2018-04-11 12:57:07 +01:00
Mike Jolley 4f69eced88 Add filter around backorder notification text. 2018-04-10 13:23:12 +01:00
Mike Jolley 2983753809 Update action placement so all product types are consistent.
Also fixes phpcs.
2018-04-10 11:57:49 +01:00
Mike Jolley 6dff553548 Make markup in external product add to cart form mirror simple products with button/form elements. 2018-04-10 11:45:31 +01:00
Claudio Sanches 1e58c3f2a0 Replaced post_class() to wc_product_class() 2018-04-06 14:03:38 -03:00
Mike Jolley 212a8a180f Back compat 2018-04-06 11:51:03 +01:00
Mike Jolley 3140a0fb62 More customistion options for terms and conditions. 2018-04-06 11:43:30 +01:00
Peter Fabian 80dc183880 Use nbsp to separate * denoting required fields. 2018-04-04 16:45:40 +02:00
linkhousemedia 874b7426af
Add oxford comma to dashboard intro text
Comma after "shipping and billing addresses" for the grammar lovers.
2018-03-29 00:04:30 -04:00
Claudio Sanches 9ab58dde47 Merge branch 'master' into fix/incorrect-escaping 2018-03-28 14:32:51 -03:00
Claudio Sanches 376e51c9f1 Fixed PHPCS violations 2018-03-28 14:30:43 -03:00
Mike Jolley a6d82431bb
Merge pull request #19426 from michakrapp/master
add autocomplete attributes to account and register forms #19425
2018-03-28 14:03:27 +01:00
michakrapp 8d3c76d980 account edit form disble autocomplete for password fields 2018-03-28 12:18:14 +02:00
Claudiu Lodromanean cdb8cf86af
Merge pull request #19530 from woocommerce/add/escaping-to-publish-date
Add escaping to publish date
2018-03-27 12:12:53 -07:00
Jonathan Belcher 435337c3e0
Bump version Number 2018-03-27 11:51:47 -04:00
Jonathan Belcher b039e40fed Fixes stray space in tabbing 2018-03-26 13:51:24 -04:00
Jonathan Belcher 97c591a5e5 Add escaping to piblish date 2018-03-26 13:44:16 -04:00
Jonathan Belcher 47a82fbb3d Fixes incorrect escaping 2018-03-26 13:37:44 -04:00
Várkonyi Zoltán 7897c7b692 Add classes to register form (#19486)
* Add consistent css classes to register form, as on login form

https://github.com/woocommerce/woocommerce/issues/19480

* Fix linebreak

https://github.com/woocommerce/woocommerce/issues/19480

* Fix build error - Remove @author tag - https://github.com/woocommerce/woocommerce/issues/19480

* Bump version to 3.4.0 - https://github.com/woocommerce/woocommerce/issues/19480
2018-03-23 11:27:18 +00:00
Mike Jolley fb8b670cda Merge branch 'master' into update/19345 2018-03-19 18:00:28 +00:00
Mike Jolley e509e92f7b BW compat for nonce check 2018-03-19 17:59:30 +00:00
michakrapp cef2b1ee13 Add autocomplete attributes to reset password form 2018-03-19 09:30:11 +01:00
michakrapp cc742b908a Add autocomplete attributes to lost password form 2018-03-19 09:25:57 +01:00
michakrapp 4283804f38 Add autocomplete attributes to account edit form
maybe "password-current" should get autocomplete="off" to prevent trigger password change on default
2018-03-19 09:22:00 +01:00
michakrapp 7145b8f729 template global form-login autocomplete attributes 2018-03-19 08:53:53 +01:00
michakrapp 5a19f00c5a accout login autocomplete - commit with correct user account
on first commit used false user account
2018-03-16 11:07:02 +01:00
mksunlab 6a29551979 Revert "add autocomplete attributes to account and register forms"
This reverts commit 555d680f6e.
2018-03-16 11:00:54 +01:00
mksunlab 555d680f6e add autocomplete attributes to account and register forms
patch for issue #19425
2018-03-16 10:25:37 +01:00
Mike Jolley 9d10d107e2 Add names to nonces in template files. 2018-03-13 14:15:41 +00:00
Mike Jolley ffcfbd2108 version 2018-03-13 10:21:57 +00:00
Mike Jolley 7acb475c59 escape and strip tags in the quantity template
Closes #19356
2018-03-13 10:21:42 +00:00
Claudiu Lodromanean 4fbd01f003
Merge pull request #19288 from woocommerce/fix/19210
Introduce woocommerce_product_loop helper for loops
2018-03-12 10:50:25 -07:00
Mike Jolley d289be327b Merge branch 'master' 2018-03-08 13:24:01 +00:00
Mike Jolley 6d76cb71fd Introduce woocommerce_product_loop helper 2018-03-07 12:54:00 +00:00
Gerhard Potgieter fb76e1dd7d Revert tamplate version to 3.4.0 2018-03-07 12:53:27 +02:00
Gerhard Potgieter dce123bf23 Bump template version 2018-03-07 11:59:10 +02:00
Gerhard Potgieter 11c85c7b8d Do not pass the attribute name coming from the $_REQUEST variable through sanitize_title when working out the selected attribute as non english chars result in non matching checks. wc_dropdown_variation_attribute_options takes care of sanitization already. 2018-03-07 10:47:18 +02:00
digitalchild 14ac7736a3 Fixed: Matched indentation of other filters 2018-03-06 11:23:58 +07:00
digitalchild e838ec8b2b Added: State filter for shipping calculator 2018-03-05 11:37:25 +07:00
Mike Jolley 46ab27e4e8
Merge pull request #18820 from alexmacarthur/pii-removal
PII Issue Prevention - Remove user login from reset password link.
2018-03-03 17:19:55 +00:00
Mike Jolley a3dac6f1e2
Merge pull request #19191 from woocommerce/fix/19181
KSES instead of escaping of download names
2018-03-02 19:23:29 +00:00
Mike Jolley 9b6f3f6f9b Use no-js class to hide JS only forms/content 2018-03-01 15:53:45 +00:00
Mike Jolley aca0662839 KSES instead of escaping of download names
Fixes #19181
2018-03-01 10:37:39 +00:00
Mike Jolley 19df267023 Validate terms as required. 2018-02-28 15:42:39 +00:00
Claudio Sanches d9f1b7c7d4 Fixed converting letters with accents to uppercase in templates
Closes #19084
2018-02-22 12:32:08 -03:00
Alex MacArthur e01385d2b4 Remove user login from reset password link. 2018-02-22 06:58:18 -06:00
Mike Jolley f49491809f
Merge pull request #19078 from woocommerce/fix/17606
Display name input on My Account page
2018-02-22 12:29:58 +00:00
Mike Jolley 8ba381f2a6
Merge pull request #19059 from woocommerce/update/cart-coupon-input-to-button
Update cart coupon button from input to button type.
2018-02-22 12:26:11 +00:00
Mike Jolley fd3e693ae6
Merge pull request #18993 from woocommerce/fix/18992-deleted-terms-conditions
Make sure terms page exists and isn’t trashed
2018-02-22 12:24:57 +00:00
Claudio Sanches 0f797714f1 Tweaks on account display name 2018-02-21 21:52:45 -03:00
Claudio Sanches c0e29d0cbe
Merge branch 'fix/17606' into add/17606 2018-02-21 21:34:38 -03:00
Caleb Burks 384086b96f Check if terms page is published 2018-02-21 17:18:07 -05:00
Claudio Sanches 1fa62f83a8 Fixed template version 2018-02-21 12:51:42 -03:00
Gerhard Potgieter 077eebbf98 Bump template version to 3.4 2018-02-21 12:44:05 +02:00
Gerhard Potgieter bac2bf7b91 Update cart coupon button from input to button type. 2018-02-21 08:19:26 +02:00
Claudio Sanches 86c14f21bd
Merge pull request #19051 from aaronkirkham/master
Add missing direct script access checks
2018-02-20 16:44:36 -03:00
Claudio Sanches 2d85b5adde
Merge pull request #18956 from R33D3M33R/patch-1
Convert HTML comments to PHP, remove empty lines
2018-02-20 16:19:41 -03:00
aaronlad 87672370c5 add missing direct script access checks 2018-02-20 18:38:46 +00:00
Mike Jolley 90717295cf Remove globals/add woocommerce_add_to_cart_form_action filter 2018-02-20 11:12:29 +00:00
Claudio Sanches 965daefe45
Merge pull request #18970 from woocommerce/delete/whitespace-orders
Delete Whitespace
2018-02-19 10:47:12 -03:00
Claudio Sanches 2afb88647b
Merge pull request #18969 from woocommerce/delete/whitespace-my-orders
Deletes whitespace
2018-02-19 10:46:56 -03:00
Caleb Burks c36b2f2fde Make sure terms page exists and isn’t trashed 2018-02-16 02:27:34 -05:00
Mike Jolley f3a524255a
Merge pull request #18980 from edwardkay/patch-1
Grammar fix to login button
2018-02-15 14:04:13 +00:00
Edward Kay cc6149d08a
Grammar fix to login button
Login is a noun, not a verb :) See https://www.quora.com/Which-is-correct-%E2%80%9Clogin%E2%80%9D-or-%E2%80%9Clog-in%E2%80%9D
2018-02-15 13:58:21 +00:00
Iconic 79fa19251e
Mini cart item link
This should account for the value of `$product_permalink`, not just whether the product is visible.
2018-02-15 13:31:40 +00:00
Jonathan Belcher f64be6dc62
Delete Whitespace 2018-02-14 15:41:13 -05:00
Jonathan Belcher 8d757e3d3c
Deletes whitespace 2018-02-14 15:40:01 -05:00
Andrej Mernik 62e158835c
Update photoswipe.php
Remove comments. Theme developers can read the Photoswipe docs for modification ...
2018-02-14 07:48:12 +01:00
Mike Jolley 280ca3757e wc_get_gallery_image_html checks 2018-02-13 19:18:13 +00:00
Andrej Mernik 4e1fab4652
Convert HTML comments to PHP, remove empty lines
There are no benefits of exposing code comments to the public. The code was also made more compact.
2018-02-13 14:43:02 +01:00
Mike Jolley 2b36b5f49f Main image should be larger. 2018-02-13 11:16:42 +00:00
Mike Jolley a55a4b9a88 Use helper function which has more filters and moves logic out of template file 2018-02-13 11:16:42 +00:00
Mike Jolley 7dd880ca57 Email order details template version
This template had a change but was not bumped.
2018-02-09 16:52:02 +00:00
Kathy Darling e54009e652 Add grouped_form class to grouped product <form> element. Closes #18763 2018-02-02 11:17:42 -06:00
Mike Jolley 5bea7de93c
Merge pull request #18743 from woocommerce/fix/unsupported-theme-homepage-pagination
Fix shop on homepage with unsupported themes
2018-02-01 12:45:17 +00:00
Mike Jolley 2ed9691c14 Fix shop on homepage with unsupported themes 2018-02-01 11:15:46 +00:00
Mark Truitt 382d31018a
Update wrapper-end.php
default fallback needed to be reversed. Opening containers are div > main
2018-01-31 19:23:46 -05:00
claudiulodro 2cf3a5f57e Add fallback for themes that just get the pagination template 2018-01-31 10:10:09 -08:00
Jason Kytros a08c003254 Remove filter 'woocommerce_order_item_product' from order-details.php 2018-01-31 14:54:51 +02:00
Mike Jolley 04fe7aaf4a Switch to variable 2018-01-30 12:12:44 +00:00
Stanislav Mazur c692c0a869 Make 'woocommerce_email_downloads_column_' hook format aware (#18598) 2018-01-25 18:04:17 +02:00
Jared Burke 8c62d76aee Fix: use string escape for order numbers 2018-01-24 09:45:35 -06:00
Mike Jolley b9a4a342e6 Remove the lone price/label/quantity class in grouped template
Closes #18542
2018-01-22 14:27:46 +00:00
Claudiu Lodromanean bb47315fdd
Merge pull request #18459 from woocommerce/fix/18451
Auth screen escaping
2018-01-12 07:26:54 -08:00
Claudio Sanches 7290d6e42e Fixed test string #18430 2018-01-12 11:59:17 -02:00
Mike Jolley ac7bdd1a56 Fix escaping and PHPCS 2018-01-12 13:04:26 +00:00
Claudio Sanches cac9e0d872 Fixed number of args passed to woocommerce_order_item_meta
Part of #18437
2018-01-11 14:47:19 -02:00
Claudio Sanches 452cc738cb Fixed number of args passsed to woocommerce_order_item_meta_start
Closes #18437
2018-01-11 14:21:49 -02:00
Mike Jolley b17ef15f7d phpcs 2018-01-11 12:28:08 +00:00
Mike Jolley f1e0d4929b Implement get_edit_order_url method. 2018-01-11 12:04:39 +00:00
ElectricFeet 21c5b36113
Remove non-standard outdated CSS
Removed `-moz-osx-font-smoothing: grayscale;` and `-webkit-font-smoothing: antialiased;`, as suggested in woocommerce/storefront#698
2018-01-03 17:58:02 +01:00
claudiulodro 7fcbceaae5 Refactor logic 2017-12-21 11:31:58 -08:00
claudiulodro d0bc5964ea Actually use correct template version 2017-12-21 11:25:22 -08:00
claudiulodro 59a174985b Use correct template version and phpcs 2017-12-21 11:20:30 -08:00
claudiulodro 2d88654a0a Always use contrasting color for links 2017-12-21 11:14:14 -08:00
claudiulodro 28db1c270a Use text color for links 2017-12-21 06:35:55 -08:00
Chetan Prajapati 325cbf443d
Remove space before comma in function call
There is PHPCS error about "Remove space before comma in function call". That needs to be removed.
2017-12-20 22:07:48 +05:30
Claudio Sanches 9413589e8f Apply woocommerce_short_description filter before check if excerpt is empty
Closes #18225
2017-12-19 14:19:12 -02:00
Caleb Burks 82c5975b37 Prevent duplicate IDs on checkout page 2017-12-17 22:43:51 -06:00
Claudiu Lodromanean 906efe1ffc
Merge pull request #18189 from woocommerce/fix/17897
Add getter for tax_display_cart variable, with filter
2017-12-15 08:44:43 -08:00
Mike Jolley 06a7570f4b Out of stock should not show qty in grouped products. 2017-12-15 15:32:50 +00:00
Mike Jolley 01871fd2c8 Add getter for tax_display_cart variable, with filter 2017-12-15 13:39:35 +00:00
Mike Jolley 755647ec5c Improve subcat display to see if subcats can actually be displayed 2017-12-13 15:46:09 +00:00
Mike Jolley 87fd8b2feb Update pay link wording 2017-12-12 16:38:50 +00:00
Mike Jolley 6bd89b6106 Template version bumps
@claudiulodro
2017-12-12 13:13:00 +00:00
Mike Jolley e6b4b36e7d
Merge pull request #18096 from ramiy/patch-2
a11y: add `role=alert` to woocommerce error msgs
2017-12-12 13:10:19 +00:00
Mike Jolley 466cb3e1cb
Merge pull request #18074 from ramiy/patch-1
a11y: add `role=alert` to woocommerce message div
2017-12-12 13:10:10 +00:00
Rami Yushuvaev 255c3211ab
a11y: add `role=alert` to woocommerce error msgs
See #18074
2017-12-11 16:40:25 +02:00
Mike Jolley f4927ea837 Give control over loop button attributes
Closes #18079
2017-12-11 13:09:21 +00:00
Mike Jolley bd944cb664 Using $args makes it clearer what's in the variable. 2017-12-11 12:36:47 +00:00
Caleb Burks 92ee7da0aa Pass $args to woocommerce_loop_add_to_cart_link 2017-12-09 20:54:40 -06:00
Mike Jolley 1fbcff023d Include city field by default 2017-12-08 14:11:51 +00:00
Rami Yushuvaev 29019b7713
a11y: add `role=alert` to woocommerce message div
Help assistive technology and to mark the message as important message. When this role is added to an element, the browser will send out an accessible alert event to assistive technology products which can then notify the user about it.
2017-12-08 15:22:07 +02:00
Boro Sitnikovski d0f9aaa99a Merge branch 'master' into tweak/decouple-cart-template-methods 2017-12-07 20:16:08 +01:00
Boro Sitnikovski c9d06bb4b9 Bump templates version 2017-12-07 16:00:30 +01:00
Boro Sitnikovski 588c5f3779 Change method name 2017-12-07 15:53:16 +01:00
Mike Jolley 119ee7f27c Use new loop functions 2017-12-06 18:10:44 +00:00
Mike Jolley 8dcffa660e Normalise get_query_results names and add new param for pagination 2017-12-06 13:13:43 +00:00
Boro Sitnikovski 145d47c580 Decouple cart templating methods from WC_Cart class 2017-12-05 13:00:21 +01:00
claudiulodro d60456cc73 Resolve conflicts and bring up to date with master 2017-12-04 13:56:59 -08:00
Claudiu Lodromanean b05cd3f3a7
Merge pull request #17934 from woocommerce/fix/17925
Display product URL only if is not hidden in downloads list
2017-11-29 10:33:34 -08:00
Andrew Lazarus db65913d3c
Removed whitespace in variations
Whitespace is added by formatting the lines with whitespace. This stops you from being able to target the element & check if it's empty with :empty etc.
2017-11-29 10:55:09 +01:00
Claudio Sanches fd4fa0cf71 Fixed coding standards 2017-11-28 11:04:38 -02:00
Claudio Sanches def87b74bf Display product URL only if is not hidden in downloads list
Fixes #17925
2017-11-28 10:18:43 -02:00
Arif Widianto ebbdf2da0e Change description as of mikejolley's suggestion 2017-11-28 08:50:20 +07:00
Arif Widianto 51948b7ae5 Fix account page for providing display_name edit 2017-11-28 07:56:36 +07:00
Arif Widianto 0b42515c93 Provides edit display name in my-account page (#17606) 2017-11-22 15:20:49 +07:00
Mike Jolley b9bfc4a26b
Merge pull request #17753 from willgorham/fix/17597
Responsive table for order downloads
2017-11-20 12:18:54 +00:00
Brandon Kraft e34551c6b7
Correct nesting of args 2017-11-17 15:40:54 -06:00
Brandon Kraft b77dadf5ba
Bump template version 2017-11-17 15:16:53 -06:00
Brandon Kraft 7e9068ac53
Correct errors per PHPCS 2017-11-17 12:10:58 -06:00
Brandon Kraft 5974901124
Change default text for checkout page link 2017-11-17 11:17:22 -06:00