Commit Graph

29795 Commits

Author SHA1 Message Date
Mike Jolley 96603720ca Item subtotal rounding must match cart calc class
Fixes #21871
2019-01-11 11:41:22 +00:00
Gerhard 0a5d3b1675 Sort countries based on wc_ascii_uasort_comparison 2019-01-11 13:40:38 +02:00
Mike Jolley a4a421a86b Failing test case for the issue 2019-01-11 11:34:47 +00:00
Gerhard f8dfac9f48 Add wc_ascii_uasort_comparison function to compare values based on ascii values 2019-01-11 13:18:59 +02:00
Gerhard 11b9f49d18 Add a fallback to cURL version check in system status so it still shows if cURL is installed when the version function is disabled by the host. 2019-01-11 10:38:21 +02:00
Rodrigo Primo c15d622dd2 WC_Data::get_id() does not take any parameters
This commit removes a parameter from a call to WC_Data::get_id() as this method does not take any parameters
2019-01-10 17:10:13 -02:00
Rodrigo Primo 609430a8f1 Remove unused parameter from WC_Webhook_Data_Store::delete() 2019-01-10 17:08:41 -02:00
Rodrigo Primo 3cf945d5d9 Fix PHPCS errors automatically using phpcbf 2019-01-10 17:07:53 -02:00
Rodrigo Primo a7463c5535 Merge branch 'master' of github.com:woocommerce/woocommerce 2019-01-10 16:39:22 -02:00
Rodrigo Primo 3b3da24546 Fix typo in inline comment 2019-01-10 16:38:58 -02:00
Rodrigo Primo c2b49dc6e3 fix phpcs violation 2019-01-10 16:38:26 -02:00
Rodrigo Primo c82346b095 Restore code to delete wc_layered_nav_counts_* transients
Commit a9994feeea removed the code to delete wc_layered_nav_counts_* transients whenever a product attribute is updated and moved it to wc_delete_product_transients(). This was done to make sure those transients are deleted whenever a product is updated and not only when a product attribute changes. But, as Claudiu pointed out (https://github.com/woocommerce/woocommerce/pull/22029#issuecomment-451473512), this change introduced a bug as if you remove an attribute from a product, by the time the code reaches wc_delete_product_transients() the changes have been applied already to the product, the attribute doesn't belong to it anymore, and thus the layered nav counts transient for that attribute is not deleted.

To work around this problem, this commit restores the code that deletes wc_layered_nav_counts_* transients inside WC_Product_Data_Store_CPT::update_attributes(). Now, in most cases, WC will try to delete the same transient twice, but I can't see any other way to implement a solution for the problem above without doing this.
2019-01-10 14:19:03 -02:00
Ron Rennick 6618d1e626 fix merge conflict 2019-01-10 11:22:31 -04:00
Ron Rennick 951b68be48 phpcs sniff fixes for class-wc-widget-price-filter.php 2019-01-10 11:13:50 -04:00
Ron Rennick 1033217860 only hide price filter widget when archive has no products 2019-01-10 11:12:09 -04:00
Mike Jolley 96ba549b2b Remove type hint 2019-01-10 13:23:49 +00:00
Mike Jolley f67ab4e447 correct version 2019-01-10 13:20:02 +00:00
Mike Jolley 1815928208 Merge branch 'master' into pr/21217 2019-01-10 13:10:11 +00:00
Mike Jolley f4ed56a894
Merge pull request #21153 from jamesckemp/patch-12
`woocommerce_variation_option_name` Parameters
2019-01-10 12:28:21 +00:00
Mike Jolley f0772e6b2c Merge branch 'pr/21235' 2019-01-10 12:25:07 +00:00
Mike Jolley 8c0e0b62cd Add legacy class and version bump 2019-01-10 12:24:48 +00:00
Gator92 a240623f47 pass all arguments to woocommerce_order_item_display_meta_value filter 2019-01-10 07:21:34 -05:00
Rodrigo Primo 5117a65638
Merge pull request #22116 from woocommerce/fix/refund-hash-reload/22115
Strip hash from URL that prevents reload on refunds
2019-01-09 18:20:37 -02:00
Claudiu Lodromanean e27ef52875
Merge pull request #20667 from woocommerce/fix/20658
Make product edit form aware publish was pressed
2019-01-09 12:17:38 -08:00
Rodrigo Primo b4db23a4fc Bump template version after change in #22078 2019-01-09 17:39:02 -02:00
Rodrigo Primo edd8f14e40 Merge branch 'master' of github.com:woocommerce/woocommerce 2019-01-09 17:38:32 -02:00
Rodrigo Primo 0b09bef386
Merge pull request #22078 from unfulvio/make-shipping-options-available-text-filterable
Make shipping may be available text filterable
2019-01-09 17:38:00 -02:00
Rodrigo Primo 7daf97d1f8 phpcs fixes
this indentation change is a bit odd but makes phpcs happy
2019-01-09 17:32:27 -02:00
Rodrigo Primo b115a7587f
Merge pull request #21966 from woocommerce/add/21955
Filter out buttons from edit order row click
2019-01-09 17:23:29 -02:00
Ron Rennick 0d0f004c66 update default attribute slug when atribute term slug is changed 2019-01-09 15:10:24 -04:00
Rodrigo Primo 519886838c
Merge pull request #21969 from woocommerce/add/21964
Add woocommerce_valid_location_types filter
2019-01-09 17:02:20 -02:00
Rodrigo Primo 8b129a89bf phpcs fixes 2019-01-09 16:33:38 -02:00
Will Gorham ec9d1d9402 Tests phpcs 2019-01-09 13:31:51 -05:00
Will Gorham 56fa520b8e Tests for get_shipping_continents() 2019-01-09 13:31:30 -05:00
Will Gorham 1fc4ef6c59 Clean up docblocks and unused vars 2019-01-09 12:54:37 -05:00
Will Gorham da6f425488 phpcs 2019-01-09 12:49:11 -05:00
Will Gorham 8051a0b0fc Only show available shipping continents in zone regions 2019-01-09 12:48:18 -05:00
Mike Jolley bf5ea249b5
Merge pull request #21991 from johnbillion/21989/user-switching-support
User Switching support
2019-01-09 17:01:47 +00:00
Mike Jolley fe02144d0a
Merge pull request #21927 from woocommerce/add/21925
Make links in order notes clickable.
2019-01-09 16:52:37 +00:00
Mike Jolley 83543a9232 Handle publish and save post buttons by storing ID of button pressed 2019-01-09 16:31:53 +00:00
Mike Jolley 679af01f8d Merge branch 'fix/20658' of https://github.com/woocommerce/woocommerce into fix/20658 2019-01-09 16:11:14 +00:00
Mike Jolley 6dd984e0cf Merge branch 'master' into fix/20658 2019-01-09 16:09:19 +00:00
Ron Rennick 1d05cf3d91 phpcs sniff fixes for class-wc-product-csv-exporter.php 2019-01-09 10:21:24 -04:00
Ron Rennick 74c9f16377 use slug sanitization on product export category slugs 2019-01-09 10:17:55 -04:00
Mike Jolley b4427e0c25 Merge branch 'pr/22298' 2019-01-09 13:51:30 +00:00
Mike Jolley 06b5480f2d
Merge pull request #22071 from Prospress/fix/22060
don't html escape sku used in product lookup
2019-01-09 13:07:04 +00:00
Mike Jolley 0620389e46
Merge pull request #22266 from woocommerce/e2e-update-db
Update e2e tests database to WP 5.0.1 and WC 3.5.2
2019-01-09 12:14:47 +00:00
Mike Jolley a07cadf510
Merge pull request #21958 from mahdiyazdani/patch-2
Updated conditional statements to Yoda style
2019-01-09 12:11:53 +00:00
Mike Jolley 5820faba78
Merge pull request #21986 from JPry/wc_customer_has_capability_return_doc
Use proper return value for wc_customer_has_capability() docblock
2019-01-09 12:10:34 +00:00
Mike Jolley 21d8f74cb3
Merge pull request #22389 from woocommerce/renovate/wp-cli-wp-cli-2.x
Update dependency wp-cli/wp-cli to v2
2019-01-09 11:54:11 +00:00