Commit Graph

30338 Commits

Author SHA1 Message Date
Mike Jolley ee158ae044
Merge pull request #22411 from Gator92/order_item_meta_filter
pass all arguments to woocommerce_order_item_display_meta_value filter
2019-01-22 13:04:02 +00:00
Mike Jolley 83aa070654
Merge pull request #22412 from woocommerce/fix-minor-issues-in-webhook-class
Fix minor issues in WC_Webhook_Data_Store class
2019-01-22 12:51:42 +00:00
Mike Jolley 4d4d34a2d1
Merge pull request #22514 from woocommerce/update/mailchimp-branding-setup-wizard
Updates Mailchimp branding in setup wizard
2019-01-22 12:39:24 +00:00
Mike Jolley 5cb60b840c
Merge pull request #21859 from ChromeOrange/master
Add filter to save_payment_method_checkbox
2019-01-22 12:05:42 +00:00
Mike Jolley 4c28ba612c
Merge pull request #21884 from woocommerce/add/wc-admin-taxonomy-instance/21883
Add WC_Admin_Taxonomies instance method
2019-01-22 12:01:33 +00:00
Mike Jolley 3e66b1b4df
Merge pull request #22501 from realbigplugins/product-gallery-events
Product Gallery Before/After Init Events and adjustments to ProductGallery object to use custom arguments for Flexslider
2019-01-22 11:23:58 +00:00
Ron Rennick c3879f0d63 only deduct refunded shipping, taxes once from gross to get net sales by date CSV 2019-01-21 15:44:53 -04:00
Ron Rennick aa9961695f phpcs sniff fixes for class-wc-report-orders-by-date.php 2019-01-21 15:36:29 -04:00
claudiulodro cdfe34f79a skip couple tests on old versions 2019-01-21 10:02:55 -08:00
Mike Jolley e5af25e994
Merge pull request #21341 from kinging123/patch-2
Added action 'woocommerce_variation_header' after actions in variations list
2019-01-21 16:59:48 +00:00
claudiulodro 81360d6827 Merge remote-tracking branch 'origin/master' into HEAD 2019-01-21 08:12:56 -08:00
Mike Jolley 6367d19615 phpcs 2019-01-21 08:11:40 -08:00
Mike Jolley 6534653f53
Merge pull request #22309 from cynepkot/master
Update to email-styles.php to fix the iOS email app layout issue
2019-01-21 16:10:56 +00:00
Mike Jolley 177d403878 Update currency test 2019-01-21 16:02:28 +00:00
Mike Jolley 759424a5fb
Merge pull request #22394 from fitimvata/master
Add filters for mail callback in WC_Email::send method.
2019-01-21 16:00:10 +00:00
Alessandro Morelli be0f4b45e3 Fix coding standard violations 2019-01-21 16:54:49 +01:00
Mike Jolley d096d17d25 Merge branch 'pr/22488' 2019-01-21 15:39:00 +00:00
Mike Jolley 2d14315f3d woocommerce_cart_totals_get_item_tax_rates 2019-01-21 15:38:48 +00:00
Mike Jolley 0c9de00b74
Merge pull request #22425 from helgatheviking/issue-21845-b
switch woocommerce_ordered_again hook to ref_array
2019-01-21 15:15:54 +00:00
Mike Jolley 459dc12724
Merge pull request #22504 from woocommerce/renovate/stylelint-9.x
Update dependency stylelint to v9.10.1
2019-01-21 15:06:04 +00:00
Mike Jolley 7973812e8a
Merge pull request #22495 from jespervnielsen/patch-4
Added DK (Danish ) To locale-info
2019-01-21 15:05:03 +00:00
Mike Jolley c830d429ef
Merge pull request #22435 from zJesusJavier/patch-2
Updating Venezuelan Currency
2019-01-21 15:01:18 +00:00
Mike Jolley 944ece0fad
Merge pull request #22414 from woocommerce/update/22406
Add a fallback to cURL version check in system status
2019-01-21 15:00:35 +00:00
Mike Jolley 7433dfe6f3
Merge pull request #22424 from Prospress/fix/22422
return coupon error messages as text message for alert()
2019-01-21 14:57:34 +00:00
Sandesh 1c4f02d2e2 Before action for order heading in checkout form template (#22481)
* Before and After actions for order heading

To modify checkout HTML structure effectively through action.

* Remove unnecessary action.
2019-01-21 14:55:16 +00:00
Mike Jolley 120add0bff
Merge pull request #22487 from woocommerce/fix/22485
Made municipality address field optional for Latvia.
2019-01-21 14:54:05 +00:00
Renovate Bot 62c636e3ef
Update dependency stylelint to v9.10.1 2019-01-21 14:52:21 +00:00
Mike Jolley 690e07a2c9
Merge pull request #22502 from woocommerce/renovate/eslint-5.x
Update dependency eslint to v5.12.1
2019-01-21 14:51:00 +00:00
Mike Jolley 3f432544fc
Merge pull request #22510 from woocommerce/renovate/autoprefixer-9.x
Update dependency autoprefixer to v9.4.6
2019-01-21 14:49:25 +00:00
Gareth Allison 2dcc823e46 Updates mentions of "MailChimp"
Updates mentions of "MailChimp" to "Mailchimp" as per their branding guidelines: https://mailchimp.com/about/brand-assets/
2019-01-21 16:34:31 +02:00
Gareth Allison e54b1dabbd Changes tile background color to gold
As per Mailchimp's color guidelines on https://mailchimp.com/about/brand-assets/
2019-01-21 16:33:46 +02:00
Gareth Allison e60dca5c3b Adds updated Mailchimp avatar image 2019-01-21 16:33:08 +02:00
Mike Jolley e91f3b88f5
Merge pull request #22448 from woocommerce/fix/21580
Multisite - Load customer data for logged in users regardless of being member of sub-site
2019-01-21 14:21:21 +00:00
Mike Jolley 0c70945bcb Merge branch 'fix/21580' of https://github.com/woocommerce/woocommerce into fix/21580 2019-01-21 14:05:50 +00:00
Mike Jolley 7db783d7a1 revert admin bar change 2019-01-21 14:05:48 +00:00
Mike Jolley dc01d1de76 Deprecate delete_version_transients 2019-01-21 13:08:01 +00:00
Mike Jolley d3ac50d47f Remove heavy queries from transient cleanup function
Remove heavy queries from transient cleanup function

Removes unneccessary loops and heavy queries.

There is a parent update and cache clear which was added in #17141. This cleanup is handled in `update_attributes` so doing it again here should be unneccessary.

Finally, the layered nav cleanup here can be moved. #22029 notes that this was needed in case of a stock change affecting product visibility. If we move to the data store, we can avoid getting the product here which is slower.
2019-01-21 13:02:31 +00:00
Mike Jolley 7744879326 wc_delete_product_transients for parent 2019-01-21 13:01:18 +00:00
Renovate Bot 60d5e10540
Update dependency autoprefixer to v9.4.6 2019-01-21 13:01:17 +00:00
Mike Jolley 8ede6bcb74 Added helpers to clean transients during shutdown and clean layered nav counts 2019-01-21 13:00:21 +00:00
Mike Jolley c5da2dbcde Remove unrelated transient
wc_count_comments is completely unrelated to products. This can be moved to the transient cleanup tool, because code already exists to clear this cache when needed in WC_Comments.
2019-01-21 12:59:39 +00:00
Rodrigo Primo eea4810c49 Revert change to defer transient cleanup
This commit reverts commits 2f8a3eae49 and 17e97c2580 that were created to defer transient cleanup (see #20537) and avoid deadlocks on the wp_options table (see #20528 and #17632). The problem is that deferring transient cleanup to a cron job created an issue when creating or importing multiple products at once (see #21100 and https://github.com/woocommerce/wc-smooth-generator/issues/14#issuecomment-413342136) and has the potential to impact the checkout as well if we start using more versioned transients for orders.

This problem is happening because when importing or creating multiple products at once, for each product that is created or imported, WooCommerce core enqueues a few 'delete_version_transients' cron events. Events are enqueued faster than they are executed and after a few hundred products are generated, the size of the cron queue, which is stored in a single wp_options entry, starts to impact WordPress performance in general.

To reduce the chance of deadlocks happening again after this change, I already created another PR to optimize the query used to delete transients (#21274) by avoiding an unnecessary filesort, and I'm planning, on a subsequent commit, to improve it further by prefixing the transient name with its version instead of suffixing it as it is currently done. But the ultimate solution for high traffic stores is to use a persistent cache plugin.
2019-01-21 12:58:19 +00:00
Mike Jolley 08d7e319b6 Version handling for var prices 2019-01-21 12:56:55 +00:00
Mike Jolley eabc30be5e wc_customer_bought_product - move version within transient 2019-01-21 12:38:40 +00:00
Mike Jolley 452bb5b5e7 Include version within transient 2019-01-21 12:31:48 +00:00
Mike Jolley 0cf82b8937 Use fixed transient naming in wc_get_shipping_method_count 2019-01-21 12:05:58 +00:00
Mike Jolley 5280ceb8d9 Improve inline docs in calculate_shipping_for_package 2019-01-21 11:49:44 +00:00
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
Ron Rennick ab6012fa3f move test parameters with calculations to separate lines 2019-01-18 23:32:47 -04:00