Commit Graph

17109 Commits

Author SHA1 Message Date
Ron Rennick b774968c81 set refund prices_include_tax meta to be the same as the order receiving the refund 2019-01-18 23:38:36 -04:00
Ron Rennick d826aba858 phpcs sniff fixes for wc-order-functions.php 2019-01-18 23:36:46 -04:00
Claudiu Lodromanean 7f78cc3acc
Merge pull request #22334 from Prospress/fix/22326
add gutenberg block preprocessor filter to shop page content
2019-01-18 09:29:28 -08:00
Ron Rennick dad1ffb4c9 use function_exists instead of version_compare 2019-01-17 16:14:53 -04:00
Claudiu Lodromanean 3bb5d2ee79
Merge pull request #22446 from woocommerce/fix/22285
Hide 0 costs for local pickup
2019-01-17 12:10:37 -08:00
Mike Jolley fa6e2536db Tweak cost display logic 2019-01-17 13:56:11 +00:00
Claudiu Lodromanean 3dee72eddc
Merge pull request #22452 from woocommerce/fix/21700
[REST API] Variations endpoint - Removed extra inherited filters from product endpoint
2019-01-16 09:41:40 -08:00
Claudiu Lodromanean 6540e89425
Merge pull request #22445 from woocommerce/fix/21996
Change priority of notices on the account page
2019-01-16 09:40:51 -08:00
Claudiu Lodromanean c2c7cbeccb
Merge pull request #22444 from woocommerce/fix/22119
Fix checkout field locales on first load
2019-01-16 09:39:42 -08:00
Claudiu Lodromanean df2cd4b232
Merge pull request #22439 from woocommerce/fix/22430
Make sure WC active before running queries for MS widget
2019-01-16 09:38:24 -08:00
Claudiu Lodromanean f4d1587652
Merge pull request #22419 from woocommerce/fix/22010
Remove on-hold orders from tax reports
2019-01-16 09:37:09 -08:00
Claudiu Lodromanean 989865469e
Merge pull request #22416 from woocommerce/fix/21871
Incorrect rounding of multiple tax rates per location
2019-01-16 09:32:51 -08:00
Claudiu Lodromanean 86f05bbd7a
Merge pull request #22320 from Prospress/fix/22197
use slug sanitization on product export category slugs
2019-01-16 09:31:43 -08:00
Ron Rennick 9337ca51e4 add WP version check for short description block filter 2019-01-16 12:49:25 -04:00
Mike Jolley ca3623fa41
Merge pull request #22461 from woocommerce/fix/21761
Bail if getimagesize fails in filter_image_sizes_to_only_missing_thumbnails
2019-01-16 16:37:09 +00:00
Mike Jolley 78ca5c0290
Merge pull request #22277 from johnrom/fix/22276
Add a filter, woocommerce_current_user_can_edit_customer_meta_fields
2019-01-16 16:31:18 +00:00
John Rom 741435d816 Switch user meta permissions filter from user data to user id 2019-01-16 11:20:42 -05:00
John Rom 130a36107c Added filter to the save method so it is not bypassable 2019-01-16 11:00:46 -05:00
John Rom 186a1d5b7e Combine permission conditions into a single filter provided the default value 2019-01-16 10:56:26 -05:00
Mike Jolley 4fc197c67d
Merge pull request #21003 from Chunkford/patch-2
Giving the ability to add custom pricing data - read_price_data()
2019-01-16 15:22:40 +00:00
Mike Jolley 1125a5d76d
Merge pull request #22380 from Prospress/fix/22261
register order auto drafts post status
2019-01-16 15:11:48 +00:00
Mike Jolley c70bef3e9c Merge branch 'pr/22350' 2019-01-16 14:48:14 +00:00
Mike Jolley 2d44e90542 CS 2019-01-16 14:47:59 +00:00
Ron Rennick bc33f19630 add order draft status filter to allow resuming editing 2019-01-16 09:52:18 -04:00
Mike Jolley 213ba99664
Merge pull request #21961 from sebastianpisula/patch-1
New params for woocommerce_shipping_zone_*_methods_table actions
2019-01-16 13:01:45 +00:00
Mike Jolley 766dea1125
Merge pull request #22316 from ictbeheer/master
Support for Dutch postcodes
2019-01-16 11:38:21 +00:00
Mike Jolley 50a86a1a33
Merge pull request #21562 from terence1990/feature/rest-api-crud-params-filter
Add a filter to WC_REST_CRUD_Controller::get_collection_params method to allow developers to change params
2019-01-16 11:32:03 +00:00
Mike Jolley d3d1864b4e Select an option vs state 2019-01-15 15:24:17 +00:00
Gerhard 6e428e6c58 PHPCS fixes 2019-01-15 15:24:53 +02:00
Gerhard 3e06d94115 If getimagesize fails for some reason, ie plugin using offsite images, just return the original image sizes. 2019-01-15 15:22:12 +02:00
Claudio Sanches fbcbd55bf7 [REST API] Removed extra inherited filters from product endpoint
Closes #21700
2019-01-14 17:15:23 -02:00
Rodrigo Primo 507f67cb38
Merge pull request #22029 from woocommerce/fix/21429
FIx:  Delete wc_layered_nav_counts_* transients whenever a product is updated
2019-01-14 15:26:15 -02:00
Mike Jolley 696d042c0e
Merge pull request #22255 from aelia-co/Tweak-wc_get_min_max_price_meta_query-filter
Added new filter "woocommerce_get_min_max_price_meta_query"
2019-01-14 17:04:59 +00:00
Mike Jolley 4dbee72c65
Merge pull request #22165 from woocommerce/fix/22089
Add new pre query filter to WC_Product_Data_Store_CPT::search_products()
2019-01-14 17:02:51 +00:00
Mike Jolley 1f63d59244
Merge pull request #22257 from manchumahara/patch-1
Add $orderby and $order params to filter woocommerce_get_catalog_ordering_args
2019-01-14 17:00:37 +00:00
Mike Jolley bd611172c2 Hide 0 costs for local pickup 2019-01-14 15:14:44 +00:00
Mike Jolley 47bd97862a Change priority of notices on the account page so they appear above forms/content 2019-01-14 15:09:07 +00:00
Mike Jolley 9799301b0a Add script dep 2019-01-14 14:43:53 +00:00
Gerhard dc0f8fb696 PHPCS fixes 2019-01-14 09:41:24 +02:00
Gerhard 9d3053ce9a Check if WooCommerce is active on blog before running WooCommerce queries for the MS widget. 2019-01-14 09:40:04 +02:00
Gerhard 6220399163 Switch to use v3 of the API for network orders. 2019-01-14 09:15:20 +02:00
Mike Jolley 14b0e87301 Fixes edge case due to orders screen expecting unrounded values. 2019-01-11 14:07:41 +00:00
Gerhard cf38ed4aba Remove on-hold orders from tax reports as they are not paid yet. Tax reports should only contain paid orders. 2019-01-11 14:44:09 +02:00
Gerhard 4c6da744fe PHPCS fixes 2019-01-11 14:30:13 +02:00
Gerhard 77537d2cd3 Update copy for processing order emails to not mention payment as some stores take payment after orders are placed. 2019-01-11 14:29:21 +02:00
Mike Jolley 96603720ca Item subtotal rounding must match cart calc class
Fixes #21871
2019-01-11 11:41:22 +00: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