Peter Fabian
296112cbea
Merge pull request #26237 from woocommerce/fix/24000
...
Fix adding product variant to cart using `add-to-cart` parameter (#24000 )
2020-06-11 13:13:12 +02:00
Néstor Soriano
b9875a4fc1
Merge pull request #26445 from tsteur/issue_26414
...
Add hooks to "Add payment method form" to show additional fields and validate input
2020-05-15 10:16:53 +02:00
Thomas Steur
630b7f436d
apply review feedback: better naming and coding style fix
2020-05-15 09:08:35 +12:00
Thomas Steur
e10702625c
Add filter to validate add payment method action
2020-05-11 13:08:45 +12:00
Barry Hughes
2fdf4b6a0c
Pass the result of _n() through sprintf() to ensure placeholders are replaced with values
2020-05-07 13:32:05 -07:00
Jonathan Sadowski
2db4da7055
Update variation_attributes to filter out any attributes, as they must be specified
2020-05-05 14:16:37 -05:00
Jonathan Sadowski
f8066a8141
Swap order of array_merge so that posted attributes do not get clobbered
2020-05-05 13:32:14 -05:00
Jonathan Sadowski
0c2b97ead2
Load variation attributes when adding to cart by variation id
2020-05-05 13:32:14 -05:00
Claudio Sanches
0883b5b977
Merge pull request #24907 from princeahmed/master
...
remove unnecessary codes
2020-01-30 15:32:30 -03:00
Rodrigo Primo
f06ad5d78a
Replace removed WordPress.Security.NonceVerification.NoNonceVerification
...
WordPress Coding Standard 2.0 removed the sniff
WordPress.Security.NonceVerification.NoNonceVerification:
```
The WordPress.Security.NonceVerification sniff used the same error code for both an error as well as a warning.
The old error code NoNonceVerification is no longer used.
The error now uses the Missing error code, while the warning now uses the Recommended error code.
```
(from
d45f5e5cf3/CHANGELOG.md (200-rc1---2018-12-31)
)
This commit updates WooCommerce code and replaces all instances where WordPress.Security.NonceVerification.NoNonceVerification verification was used with either WordPress.Security.NonceVerification.Missing or
WordPress.Security.NonceVerification.Recommended. In a few cases WordPress.Security.NonceVerification.NoNonceVerification was used but was not needed, so instead of replacing the sniff, the line was removed. In two other cases, I removed other unrelated sniffs that were not needed.
2019-12-13 17:45:32 -03:00
Peter Fabian
44d39c369e
Fixed the PHPCS to reflect new rules.
2019-12-05 16:00:18 +01:00
Peter Fabian
159199f254
Check the nonce before the rate limiting.
2019-12-05 15:36:50 +01:00
Peter Fabian
85c4a5beed
PHPCS fixes.
2019-12-05 15:30:53 +01:00
Peter Fabian
0d3074a554
Added rate limiting to Add payment method.
2019-12-05 12:03:02 +01:00
Claudio Sanches
af4ef7ea0d
Pass input ID to wc_add_notice()
2019-11-07 20:25:06 -03:00
Prince Ahmed
5ae6d9a8d6
remove unnecessary codes
2019-10-27 00:07:31 +06:00
Marco Almeida
4800fda66c
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:45:41 +01:00
Gerhard Potgieter
556a238dfb
Merge pull request #24021 from AndyMardell/feature/allow-notice-type-changes
...
Allow notice type changes when updating cart contents
2019-07-14 21:06:20 +02:00
Andy Mardell
9d4e7f2e12
Rename filters
2019-07-09 21:22:41 +01:00
Gerhard Potgieter
213e52852c
Merge pull request #23968 from woocommerce/fix/23954
...
Allow display multiple error messages through registration validation
2019-07-04 13:17:39 +02:00
Andy Mardell
821d387c19
Add full-stop to inline comment
2019-07-01 08:31:10 +01:00
Andy Mardell
f2152e665e
Allow notice type changes when updating cart
2019-06-27 14:54:35 +01:00
Claudio Sanches
6989532274
Allow display multiple error messages through registration validation
2019-06-19 18:09:28 -03:00
rmalviya
5df3621640
Do not unslash password when resetting
...
Similar to PR(#23926 ) don't unslash password fields when posted
while resetting password or changing account details.
2019-06-14 09:16:21 +05:30
rmalviya
01025f9628
Stop unslashing password while registering user
...
After 79ff1b10e
password is not unslashed while logging in but
this missed removing `wp_unslash` from password while registering.
This causes the mismatch of password if user registered with a
password containing quote (`"`).
Fixes #23922 .
2019-06-14 09:16:21 +05:30
Claudio Sanches
836083c064
Fixed number of args for woocommerce_valid_order_statuses_for_cancel
2019-05-14 12:52:54 -03:00
Claudio Sanches
79ff1b10e7
Stop removing backslash from passwords
2019-04-24 19:37:07 -03:00
Mike Jolley
c523c379b4
Correct postcode validation on account page
2019-04-24 12:23:48 +01:00
Mike Jolley
c39f447ff4
Merge branch 'fix/22937'
2019-03-12 13:27:13 +00:00
Mike Jolley
e8aecdb824
Use wc_format_coupon_code when handling posted values
...
wc_clean and other functions strip characters - using wc_format_coupon_code keeps it consistent with post_title formatting.
2019-03-06 11:44:27 +00:00
Mike Jolley
b12f549533
Add try catch block to pay_action
2019-03-01 11:25:31 +00:00
Claudio Sanches
ff614f4f99
Catch WC_Data_Exception to avoid black screen
...
Also incldued a check to avoid duplicated messages about invalid billing
address emails.
2019-02-18 17:25:25 -03:00
Mike Jolley
c62c1e1d05
Fix save logic by moving setter into loop grabbing the value
...
Broken by https://github.com/woocommerce/woocommerce/pull/22650 phpcs changes
2019-02-14 15:22:36 +00:00
Mike Jolley
53b9e219e7
Add notice when registration is complete
2019-02-04 15:49:10 +00:00
Mike Jolley
5b3b285a9d
phpcs
2019-02-04 15:31:35 +00:00
Mike Jolley
6367d19615
phpcs
2019-01-21 08:11:40 -08:00
Kathy Darling
f9fecefb5f
Add product object and add to cart success status as params for woocommerce_add_to_cart_redirect filter
2018-12-04 11:58:14 -06:00
Peter Fabian
897af8d20e
Updated phone validation and formatting rules.
2018-08-24 15:43:46 +02:00
Mike Jolley
f9530c3ba2
Remove order again from URls
2018-06-22 13:32:21 +01:00
Mike Jolley
f89724b718
Remove order again from form handler
2018-06-22 12:39:06 +01:00
Mike Jolley
3140a0fb62
More customistion options for terms and conditions.
2018-04-06 11:43:30 +01:00
Mike Jolley
5d6b43dbc8
Update nonce handling
2018-03-13 14:16:56 +00:00
Alex MacArthur
870338ee5d
Make compliant w/ coding standards, sanitize ID.
2018-02-22 07:01:49 -06:00
Alex MacArthur
08982af65c
Set to empty string in case invalid ID is passed.
2018-02-22 06:58:18 -06:00
Alex MacArthur
c87c5627bb
Add fallback support for passing user_login in password reset link.
2018-02-22 06:58:18 -06:00
Alex MacArthur
e01385d2b4
Remove user login from reset password link.
2018-02-22 06:58:18 -06: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
Gerhard Potgieter
94640ef5af
Add back wc_get_product
2018-02-02 12:58:05 +02:00
Gerhard Potgieter
fa7fd2228c
Add check that product is not false before calling methods in if.
2018-02-02 12:56:24 +02:00