Commit Graph

28120 Commits

Author SHA1 Message Date
Rodrigo Primo 7a7130c9d0 Improve WC_Query::get_layered_nav_chosen_attributes() performance
This commits improves the performance of the method WC_Query::get_layered_nav_chosen_attributes() when a site has a significant number of product attributes. Instead of looping over all existent product attributes to find which have been passed in the request, the new code loops over all the request parameters and checks which are valid product attributes.

On a test site with 2000 product attributes, the old version of WC_Query::get_layered_nav_chosen_attributes() was responsible for 25% of the shop page generation time. With the new version, the amount that this method contributes to the page generation time is negligible.

Related #20262
2018-06-15 14:39:56 -03:00
Rodrigo Primo 35d5bf31dd phpcs fixes 2018-06-15 14:26:47 -03:00
valdrinkoshi 6e602636eb use wp.template when it's too hard 2018-06-15 10:05:00 -07:00
Claudiu Lodromanean 25be9fc13c
Merge pull request #20546 from woocommerce/fix/20509
Normalize parent tax class
2018-06-15 09:23:27 -07:00
Claudiu Lodromanean ee47ceb361
Merge pull request #20537 from woocommerce/update/transactions-revert
Transactions, caching, and version transient cleanup issues
2018-06-15 09:11:23 -07:00
Claudiu Lodromanean c203ff16d9
Merge pull request #20482 from woocommerce/fix/20452
Avoid price setting when synced with children
2018-06-15 09:05:13 -07:00
Claudiu Lodromanean fc02687545
Merge pull request #20470 from woocommerce/update/20454
Support limiting search results
2018-06-15 09:03:07 -07:00
Claudiu Lodromanean 843f19738a
Merge pull request #20458 from woocommerce/update/13359
Improved Stock Reduction Events
2018-06-15 09:00:32 -07:00
valdrinkoshi b2eb217eb8 handle interpolate escaped 2018-06-15 08:17:17 -07:00
valdrinkoshi 22d53675e6 avoid using wp.template in onFoundVariation 2018-06-15 08:08:34 -07:00
Mike Jolley 7800ca284a Merge branch 'pr/20500'
Arguments passed to end function should be passed by reference.
2018-06-15 15:50:06 +01:00
Mike Jolley 880cebbe1b align 2018-06-15 15:49:51 +01:00
Mike Jolley a0eb6843c2 define limit query 2018-06-15 15:28:29 +01:00
Risto Niinemets 174fd95765 fix undefined index attribute in layered nav widget without attributes (#20544) 2018-06-15 15:20:21 +01:00
Mike Jolley 5e6405b650 Merge branch 'master' into update/13359 2018-06-15 15:12:12 +01:00
Mike Jolley 04e304921a Show stock based on querystring var 2018-06-15 15:11:07 +01:00
Mike Jolley f633d9a0eb Update remove item notice based on order status 2018-06-15 14:38:35 +01:00
Mike Jolley a1bd9ab2ae Input type number with correct width 2018-06-15 14:32:30 +01:00
Mike Jolley 17e97c2580 Clear version cache if time is unchanged 2018-06-15 13:56:23 +01:00
Mike Jolley 217e825e22 supports_emogrifier 2018-06-15 12:43:27 +01:00
Mike Jolley be9162e869 Remove namespace 2018-06-15 12:43:19 +01:00
Mike Jolley c3144012a5 Include as needed 2018-06-15 12:43:10 +01:00
Mike Jolley 0d79ced8e4 Update emogrifier 2018-06-15 12:25:07 +01:00
Mike Jolley a8e2eaee2a Normalize parent tax class 2018-06-15 11:35:22 +01:00
Claudiu Lodromanean b1d8add833
Merge pull request #20534 from woocommerce/fix/20525
Force logging table to wrap long columns
2018-06-14 09:15:54 -07:00
Claudiu Lodromanean 4c47574d7c
Merge pull request #20533 from woocommerce/fix/20505
Round items for order total
2018-06-14 09:11:57 -07:00
Mike Jolley 4b1e08b9b9
Merge pull request #20445 from roshansameer/webhook-bulk-delete-bottom
Fix - on webhook bulk action footer delete selection
2018-06-14 17:00:57 +01:00
Mike Jolley 9b0de1a221 Missing static keyword 2018-06-14 16:35:34 +01:00
Mike Jolley 9a550c4a35 Update to correct type in unit test 2018-06-14 16:34:36 +01:00
Claudiu Lodromanean cdee048337
Merge pull request #20531 from woocommerce/fix/20519
Shipping tax may be a string, so cast it
2018-06-14 08:25:09 -07:00
Mike Jolley c5429244b2
Merge pull request #20504 from cmarangon/master
Conform returned error messages
2018-06-14 16:23:51 +01:00
Mike Jolley 6152aea961
Merge pull request #20506 from woocommerce/refactor/20420
Tokenization form refactor
2018-06-14 16:22:45 +01:00
Mike Jolley 6a97121633
Merge pull request #20219 from woocommerce/fix/20218-clearer-friendly-names
Privacy: Make scope of exporter and erasers clearer with more detailed friendly names
2018-06-14 16:13:20 +01:00
Mike Jolley 2c8106075a Merge branch 'master' into fix/20218-clearer-friendly-names 2018-06-14 16:12:53 +01:00
Mike Jolley eef1eb44d8 WooCommerce prefix only 2018-06-14 15:47:15 +01:00
Mike Jolley 0c819cbd08
Merge pull request #20432 from woocommerce/fix/20399
stopPropagation when payment method selected
2018-06-14 15:26:40 +01:00
Mike Jolley ce1810cd1a
Merge pull request #20497 from woocommerce/fix/20485
API: Order images by position before saving
2018-06-14 15:24:49 +01:00
Mike Jolley 78636b1f12 Only cache if order ID is set. 2018-06-14 14:52:25 +01:00
Mike Jolley 2f8a3eae49 Defer all transient cleanup 2018-06-14 14:40:08 +01:00
Mike Jolley 9f86839cab Remove wc_transaction_query in favour of logging 2018-06-14 14:39:18 +01:00
Mike Jolley 9afb57ae65 Force logging table to wrap long columns 2018-06-14 14:02:36 +01:00
Mike Jolley 893e6affb1 Revert this change - no issue, just keeping diff small 2018-06-14 12:56:21 +01:00
Mike Jolley 90c90591f3 Round items for order total 2018-06-14 12:52:13 +01:00
Roshan Sameer 384f54f951 Static call 2018-06-14 16:40:48 +05:45
Mike Jolley aa4a89f92d Shipping tax may be a string, so cast it
Fixes #20519
2018-06-14 11:49:45 +01:00
Claudiu Lodromanean cadca6a835
Merge pull request #20516 from woocommerce/update/npm-packages
Update npm packages chromedriver and cross-env
2018-06-13 12:38:41 -07:00
claudiulodro 79551e9843 Wootenberg JITM 2018-06-13 11:36:36 -07:00
Claudiu Lodromanean 73dbec001a
Merge pull request #20456 from JPry/custom_coupon_item_limit
Custom coupon item limit
2018-06-13 09:57:47 -07:00
Mike Jolley 77e887efe9 code standards 2018-06-13 16:55:39 +01:00
Claudiu Lodromanean 424826fd41
Merge pull request #20441 from billerr/master
shipping zone settings: fixed title for shipping methods…
2018-06-13 08:41:23 -07:00