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
Mike Jolley
4b84baa933
Merge pull request #19403 from woocommerce/update-chromedriver
...
Update chromedriver to version 2.36.0
2018-03-15 10:01:06 +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
Rodrigo Primo
684d80b11d
Update chromedriver to version 2.36.0
...
This update is necessary as chromedriver 2.33.0 doesn't work well with the latest Chrome version and this is causing some e2e tests to fail.
2018-03-14 17:18:30 -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
c64d918a98
Merge branch 'update/setup-wizard-activate-step-when-jetpack-connected'
2018-03-14 12:49:59 +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
c8909c1656
Merge pull request #19206 from woocommerce/fix/19175
...
Update the description of the user tracking notice in the onboarding wizard
2018-03-13 18:22:10 +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
824a801376
Merge pull request #19375 from woocommerce/fix/19356
...
Escape quantity label correctly.
2018-03-13 10:17:29 -07: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
Claudiu Lodromanean
075e4cb0f8
Merge pull request #19388 from woocommerce/update/12912
...
Add general woocommerce_form_field filter
2018-03-13 09:46:58 -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
Mike Jolley
1dd558ac69
Loading should be false
2018-03-13 11:50:43 +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
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
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
4bf8fbf9f4
Merge pull request #19371 from woocommerce/fix/19309
...
Clean up widget options and order_notes on uninstall
2018-03-13 10:00:32 +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
Gerhard Potgieter
9a13b4d365
Add unit tests for is_coupon_emails_allowed
2018-03-13 08:03:00 +02:00
nishitlangaliya
4b4fd3931e
missing single quote added
2018-03-13 11:15:43 +05:30