Commit Graph

746 Commits

Author SHA1 Message Date
Mike Jolley 889cf64ac4 Merge branch 'performance/wc-get-product-class' 2019-02-07 13:34:18 +00:00
Claudiu Lodromanean 2d2d7a7053
Merge pull request #22613 from woocommerce/performance/set-props
Performance: `set_props`
2019-02-06 10:02:54 -08:00
Mike Jolley 00b48febac Merge branch 'update/versioned-transients-alt' 2019-02-06 13:18:50 +00:00
Mike Jolley cb4bf5d1e5 Fix unit tests 2019-02-06 12:44:24 +00:00
Mike Jolley 250e9ff423
Merge pull request #22609 from woocommerce/fix/22545
add DAY_IN_SECONDS to cron sale price removal check for consistency with #22189
2019-02-05 11:00:35 +00:00
Ron Rennick 249bf99df5 phpcs sniff fixes for class-wc-product-data-store-cpt.php 2019-02-04 12:55:21 -04:00
Ron Rennick e64914bb3c add DAY_IN_SECONDS to cron sale price removal check for consistency with #22189 2019-02-04 12:54:33 -04:00
Mike Jolley 893b33973c Merge branch 'fix/22147' 2019-02-04 13:05:40 +00:00
Mike Jolley fe2e70d7dc
Merge pull request #22392 from woocommerce/fix/checkout-shipping-address-20975
For logged in customers, pull default address fields from customer object, not session object
2019-02-04 11:23:03 +00:00
Mike Jolley a16c677baf Missing _price 2019-01-30 16:20:23 +00:00
Mike Jolley 8e51ab2fcd Set props using one get_post_meta call 2019-01-30 16:20:17 +00:00
Mike Jolley 59e0867afe Add missing post_password prop 2019-01-30 16:01:54 +00:00
Mike Jolley 7c0273fa12 Prime caches when reading variations 2019-01-28 15:00:48 +00:00
Mike Jolley 43ba62dc86
Merge pull request #22067 from Prospress/fix/22046
populate default variation attributes when it is the first variation
2019-01-22 17:29:54 +00:00
Mike Jolley ebac35e2c5
Merge pull request #22324 from Prospress/fix/21380
update variation guid with the id after creation
2019-01-22 13:07:42 +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 6367d19615 phpcs 2019-01-21 08:11:40 -08: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 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
Mike Jolley 08d7e319b6 Version handling for var prices 2019-01-21 12:56:55 +00: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 f68a547f53 Don't mix session and customer data 2019-01-15 16:49:01 +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 1b337dea64 Load customer data regardless of current blog 2019-01-14 16:30:47 +00: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
Mike Jolley e31b35597a Slash meta values to preserve slashes on save 2019-01-08 13:28:26 +00:00
Mike Jolley fb9847bcca
Merge pull request #21853 from rellect/incorrect_call
Remove non existent parameter
2019-01-07 12:47:40 +00:00
Ron Rennick 1a02e9f64a update variation guid with the id after creation 2019-01-02 14:26:08 -04:00
Ron Rennick 50b36e549f phpcsw sniff fixes for class-wc-product-variable-data-store-cpt.php 2018-12-13 14:35:24 -04:00
Ron Rennick 36c220f0d6 fix merge conflicts, add missing wpdb::prepare 2018-12-13 14:21:25 -04:00
Claudiu Lodromanean 6e457799b3
Merge pull request #21943 from woocommerce/fix/21516
Match array keys on lowercase keys before calling set_props
2018-12-11 11:12:22 -08:00
Rodrigo Primo 522f992bfe Add new pre query filter to WC_Product_Data_Store_CPT::search_products()
This commits adds a filter to WC_Product_Data_Store_CPT::search_products() to let third-party code define custom ways to search for products.
2018-12-06 16:08:10 -02:00
Ron Rennick f9b2ff170f add missing wpdb::prepare calls 2018-11-30 15:52:20 -04:00
Ron Rennick ef23f0bb8f fix phpcs passing array arguments to wpdb::prepare 2018-11-29 14:52:52 -04:00
Ron Rennick 9e520af93e populate default variation attributes when it is the first variation 2018-11-28 11:40:35 -04:00
Ron Rennick 042c61cc5d fix phpcs sniffs in class-wc-product-variable-data-store-cpt.php 2018-11-28 11:22:07 -04:00
Rodrigo Primo 6ec2b26972 Update WordPress.DB.PreparedSQL.NotPrepared sniff name
The latest version of WPCS that was added to WC last week, changed the name of some sniffs. This commit updates the name of one of those sniffs from WordPress.WP.PreparedSQL.NotPrepared to WordPress.DB.PreparedSQL.NotPrepared.
2018-11-23 15:10:52 -02:00
Rodrigo Primo 57f44798cb Fix phpcs violations automatically using phpcbf 2018-11-23 12:57:51 -02:00
Gerhard b071855632 Some PHPCS fixes 2018-11-16 12:17:33 +02:00
Gerhard 3943ec6395 Convert array keys to lower case before comparing keys to exclude. 2018-11-16 12:13:51 +02:00
Refael Iliaguyev e5a8df36e3 Remove non existent parameter 2018-11-07 17:16:57 +02:00
Gerhard 2aa39507f7 Do not include products who's parents are not in publish status to be part of the get_on_sale_products results 2018-11-01 12:01:59 +02:00
Rodrigo Primo fce22a705f Reapply change made in c765ce644d
Reverting commit 61c7abc in commit ece9f02776, overrode a unrelated change made to the same code in another PR by commit c765ce644d. This commit simply reapplies this change.
2018-10-29 16:34:48 -03:00
Rodrigo Primo ece9f02776 Revert "First pass at using post_author instead of the post meta '_customer_user'"
This reverts commit 61c7abce4f.
2018-10-29 11:48:44 -03:00
Rodrigo Primo be4132e228 Revert "Set post_author to 0 for refund orders"
This reverts commit ad4304450d.
2018-10-29 11:47:00 -03:00
Rodrigo Primo ff7e307b6b Revert "Make sure post_author is used only after WC 3.3.0 DB upgrade routine is executed"
This reverts commit 997a6fa40d.
2018-10-29 11:46:33 -03:00
Rodrigo Primo 487ac201c0 Revert "Bump WC version to 3.4.0"
This reverts commit 7f43c39f2f.
2018-10-29 11:44:32 -03:00