Mike Jolley
e86ae89123
phpcs
2018-03-15 12:36:10 +00:00
Mike Jolley
c4b3bd0114
Merge pull request #19405 from woocommerce/phpcs-fixes
...
Fix PHPCS violations in a few files
2018-03-15 10:02:23 +00:00
Rodrigo Primo
a767eb1a87
PHPCS fixes in includes/class-wc-shipping-zone.php
2018-03-14 17:54:42 -03:00
Rodrigo Primo
af75da87fd
PHPCS fixes in includes/class-wc-shipping-zones.php
2018-03-14 17:53:41 -03:00
Rodrigo Primo
45c1adec23
Remove unused private method WC_Shipping::get_default_method()
...
This method was create in commit 9f65d2a1fc
and it was used only once inside WC_Shipping::calculate_shipping(). But commit 4c4f26ff41
removed this call to WC_Shipping::get_default_method() and left the method unused.
2018-03-14 17:50:38 -03:00
Rodrigo Primo
e90ce56a50
PHPCS fixes in includes/class-wc-shipping.php
2018-03-14 17:50:19 -03:00
Rodrigo Primo
202e527a83
PHPCS fixes in includes/class-wc-shortcodes.php
2018-03-14 17:41:24 -03:00
Claudiu Lodromanean
feba3bd3ed
Merge pull request #19378 from woocommerce/fix/19217
...
Deletes orphan variations after successful import.
2018-03-14 08:27:30 -07:00
Mike Jolley
06418f67e5
Merge pull request #19225 from roylindauer/17355-SplitAndFilter
...
Split layered nav transient per issue #17355
2018-03-14 12:50:54 +00:00
Mike Jolley
a60e51afe1
Merge branch 'master' into update/setup-wizard-activate-step-when-jetpack-connected
2018-03-14 12:49:44 +00:00
Roy Lindauer
33cfed8e47
ensure that cache is deleted
2018-03-13 15:37:09 -07:00
Roy Lindauer
b151480e6b
fix indentation issues
2018-03-13 15:34:47 -07:00
Mike Jolley
e03bc3d447
Merge pull request #19381 from woocommerce/fix/phpcs-violations-includes
...
Fix PHPCS violations in a few includes/ files
2018-03-13 19:36:53 +00:00
Mike Jolley
cb3c4849b4
Merge branch 'master' into fix/19175
2018-03-13 18:14:36 +00:00
Claudiu Lodromanean
05b4bf7a55
Merge pull request #19382 from woocommerce/fix/19370
...
Variations errors
2018-03-13 10:42:49 -07:00
Claudiu Lodromanean
c38e0e69e9
Merge pull request #19376 from woocommerce/fix/19362
...
Correctly handle default ordering on the search page
2018-03-13 10:39:59 -07:00
Claudio Sanches
c2966805c8
Merge pull request #19386 from woocommerce/fix/insert-term-fatal-error
...
Check if wp_insert_term() returned a term before using it
2018-03-13 14:33:17 -03:00
Claudio Sanches
941d2a7bfe
Merge pull request #19384 from woocommerce/fix/default-product-category-check
...
Fix default product category check
2018-03-13 14:31:16 -03:00
Claudiu Lodromanean
3a5644ddce
Merge pull request #19338 from woocommerce/fix/19222
...
Fix JS state/country inputs
2018-03-13 10:10:24 -07:00
Mike Jolley
1dbf1bc1d8
add general woocommerce_form_field filter
2018-03-13 14:30:19 +00:00
Rodrigo Primo
d603ba0b68
Check if wp_insert_term() returned a term before using it
...
This commit adds a check to make sure wp_insert_term() returned a term and not an instance of WP_Error before trying to access it. Without this change, the old code could produce the following fatal error:
Uncaught Error: Cannot use object of type WP_Error as array in includes/class-wc-install.php:478
Fixes #19377
2018-03-13 11:02:55 -03:00
Rodrigo Primo
40c56d8ee3
Fix default product category check
...
This commit casts the 'default_product_cat' option to integer before passing it to `term_exists()`. If we don't do this, `get_option( 'default_product_cat' )` return a string that is passed to `term_exists( $woocommerce_default_category, 'product_cat' )`. `term_exists()` assumes that strings are term names or slugs and search only for this fields to check if the given term exist. So it will return false (unless the term name equals to the term ID which is unlikely) even though the term exists. To make it search for terms IDs to check if the given term exists, it is necessary to pass an integer.
2018-03-13 10:19:35 -03:00
Mike Jolley
a5a6d02f86
Fix null check introduced by phpcs changes
2018-03-13 11:57:51 +00:00
Rodrigo Primo
4229b3c5b2
Rename WC_Validation::is_GB_postcode() to WC_Validation::is_gb_postcode()
...
To follow WP coding standards
2018-03-13 08:49:40 -03:00
Rodrigo Primo
850bbc1c40
PHPCS fixes in includes/class-wc-validation.php
2018-03-13 08:49:34 -03:00
Rodrigo Primo
c2c1501acc
PHPCS fixes in includes/class-wc-webhook.php
2018-03-13 08:35:25 -03:00
Rodrigo Primo
52e067eeef
PHPCS fixes in includes/wc-conditional-functions.php
2018-03-13 08:33:48 -03:00
Mike Jolley
d910f11b49
Delete orphans after import
2018-03-13 11:14:24 +00:00
Mike Jolley
387ea23d39
phpcs
2018-03-13 11:11:11 +00:00
Mike Jolley
e4e581c2ef
Correctly handle default ordering on the search page
...
Fixes woocommerce_catalog_ordering function and closes #19362 .
2018-03-13 10:43:58 +00:00
Torre Lasley
64f85346c0
Add filter to allow plugins to override the default coupon apply order. ( #19339 )
...
* Fix for Issue #10523 - Variations ID lookup by SKU
I copied the code from the bulk() function to look up the Variation ID by the Variation SKU if the Variation ID is missing.
* Added new filter woocommerce_coupon_sort to allow plugins to override the default coupon apply order.
2018-03-13 10:26:22 +00:00
Mike Jolley
200f2371fd
Merge pull request #19342 from woocommerce/update/walkers-phpcs
...
Fixed walkers PHPCS violations
2018-03-13 10:17:27 +00:00
Mike Jolley
1b905b2975
Merge pull request #19331 from woocommerce/add/coupon-wildcard-email
...
Add wildcard email support for coupons.
2018-03-13 10:05:06 +00:00
Mike Jolley
b875299b65
Merge pull request #19372 from woocommerce/fix/broke-shipping-zones
...
Fixed missing shipping zones on settings
2018-03-13 10:02:30 +00:00
Mike Jolley
923bb58f9d
Merge pull request #19369 from woocommerce/fix/19247
...
Properly check for old and new slug while updating attributes
2018-03-13 10:01:43 +00:00
Mike Jolley
48303278f6
Merge pull request #19373 from nishitlangaliya/issue-19323
...
missing single quote added
2018-03-13 09:59:55 +00:00
Mike Jolley
272c43f0d8
Just ENT_QUOTES is enough in https://github.com/woocommerce/woocommerce/pull/19349
2018-03-13 09:58:38 +00:00
Anders Skouboe
363fb54a2d
Decode single quotes in short description editor
2018-03-13 09:58:38 +00:00
nishitlangaliya
4b4fd3931e
missing single quote added
2018-03-13 11:15:43 +05:30
Gerhard Potgieter
01775a4443
Missing space
2018-03-13 07:34:47 +02:00
Claudio Sanches
988e5e576e
Fixed spacing
2018-03-12 17:40:13 -03:00
Claudio Sanches
03c98e7ae7
Fixed missing shipping zones on settings
...
Fixed empty wp_localize_script() when WC_Shipping_Zone->get_shipping_methods() loads as admin data instead of json.
2018-03-12 17:37:45 -03:00
Mike Jolley
a6b6685353
Merge pull request #19335 from woocommerce/fix/19244
...
Use gallery thumbnail size for variation image switcher.
2018-03-12 20:09:03 +00:00
Mike Jolley
e936cbdf9c
todo note for #19293
2018-03-12 19:53:14 +00:00
Mike Jolley
895df71b9e
Merge pull request #19310 from woocommerce/fix/19294
...
Only add schema for ratings when enabled.
2018-03-12 19:37:24 +00:00
Claudio Sanches
54a0e01b8a
Merge branch 'master' into patch-2
2018-03-12 16:28:00 -03:00
Claudio Sanches
6130a222cc
Properly check for old and new slug while updating attributes
...
Closes #19247
2018-03-12 15:52:26 -03:00
Roy Lindauer
7016762dd5
Merge branch '17355-SplitAndFilter' of github.com:roylindauer/woocommerce into 17355-SplitAndFilter
2018-03-12 10:58:31 -07:00
Claudiu Lodromanean
0cc1b78341
Merge pull request #19296 from woocommerce/fix/hash-function
...
Hash may not exist
2018-03-12 10:58:31 -07:00
Roy Lindauer
6fba320040
Delete tax specific transients
2018-03-12 10:57:14 -07:00