Commit Graph

26785 Commits

Author SHA1 Message Date
Rodrigo Primo fdfe95b07e Update WC API v1 and v2 to use post_author instead of _customer_user 2018-05-07 17:37:31 -03:00
Rodrigo Primo b97f2749d6 Update wc_customer_bought_product() and customers report to use post_author instead of _customer_user 2018-05-07 17:25:58 -03:00
Rodrigo Primo 14287bdcf3 Fix PHPCS violations in includes/admin/reports/class-wc-report-customers.php 2018-05-07 17:12:26 -03:00
Rodrigo Primo f725dc17af Set post_author to 0 on all orders that belong to a deleted customer 2018-05-07 15:37:25 -03:00
Rodrigo Primo 697421a9fa Cache query to get the list of orders placed by the user ID 1 2018-04-19 10:14:02 -03:00
Rodrigo Primo 923eeb2e43 Monitor only memory limit while running the data migration
Turns out WP_Background_Process uses an arbitrary value of 20 seconds of wall clock time to measure PHP "time limit" (b0617a13c4/includes/libraries/wp-background-process.php (L385)) instead of cpu time which apparently it is not easy to measure in PHP. Since system calls (like database calls) are not included in the PHP maximum execution time, 20 seconds of wall clock is often way less than PHP time limit.

Thus, this commit removes the call to WP_Background_Process::time_exceeded() while running the function to migrate the post meta _customer_user to the field post_author. If the script times out, WP_Background_Process will restart it.
2018-04-17 16:07:18 -03:00
Rodrigo Primo e02f3fbec4 Migrate data to post_author in a single go when using WP-CLI 2018-04-17 16:07:11 -03:00
Rodrigo Primo ccf10f6ab2 Punt to WC version 3.5.0 2018-04-17 11:12:46 -03:00
Rodrigo Primo 4123cc6f7d Migrate _customer_user to post_author in batches
This will make the update slower but safer when running in cheap servers.
2018-04-16 11:15:42 -03:00
Rodrigo Primo c77b2f20f4 Change WC_Background_Updater to allow in-task resource monitoring
This change makes it possible to monitor resource usage inside each of the database update functions. Useful when doing resource intensive updates to stop the execution and requeue before the execution is aborted.
2018-04-16 10:40:00 -03:00
Rodrigo Primo 35998e56cb Reposition wc_update_340_order_customer_id() function
So that it is listed together with WC 3.3 update functions
2018-04-11 15:23:12 -03:00
Rodrigo Primo 36ca6ef901 Merge branch 'master' into update/use-post-author-for-customer-id 2018-04-11 15:19:58 -03:00
Claudiu Lodromanean 49e93bc755
Merge pull request #19673 from woocommerce/update/19663
Move WC photoswipe styles to photoswipe.css
2018-04-11 10:24:16 -07:00
Claudiu Lodromanean 5bc7e91b67
Merge pull request #19670 from woocommerce/update/19641
Load meta box input values using CRUD and edit context
2018-04-11 10:14:06 -07:00
Rodrigo Primo 20793bfb81 3.3.5 changelog 2018-04-11 11:01:44 -03:00
Claudio Sanches ed634df65a
Merge pull request #19672 from woocommerce/update/19643
Add filter around backorder notification text.
2018-04-10 14:32:44 -03:00
Claudio Sanches be1b200ce8
Merge pull request #19669 from woocommerce/fix/19450
Avoid storing coupon `used_by` data
2018-04-10 14:30:33 -03:00
Claudio Sanches f3f05fd59a
Merge pull request #19668 from woocommerce/fix/19657
Clear shipping transient when saving shipping method on zones screen
2018-04-10 14:28:53 -03:00
Claudio Sanches 81a699114c
Merge pull request #19667 from woocommerce/fix/19655
Load gateways before order is saved/email is triggered
2018-04-10 14:27:47 -03:00
Claudio Sanches 2a4b364069
Merge pull request #19671 from woocommerce/fix/19661
sanitize_text_field does not preserve line breaks. wp_kses_post seems more appropriate.
2018-04-10 11:49:51 -03:00
Claudio Sanches 440bef337f
Merge pull request #19676 from woocommerce/fix/19674
Fix Rest API featured filter
2018-04-10 11:49:03 -03:00
Mike Jolley 903e3e8acd Fix featured filter 2018-04-10 14:58:06 +01:00
Mike Jolley 772588b448 Move WC photoswipe styles to photoswipe.css
Closes #19663
2018-04-10 13:48:05 +01:00
Mike Jolley 4f69eced88 Add filter around backorder notification text. 2018-04-10 13:23:12 +01:00
Mike Jolley 50e2832d2d sanitize_text_field does not preserve line breaks. wp_kses_post seems more appropriate.
Fixes #19661
2018-04-10 13:09:20 +01:00
Mike Jolley efe0d36eea Load meta box input values using CRUD and edit context 2018-04-10 13:01:52 +01:00
Mike Jolley 55aced044f Avoid storing coupon `_used_by` data 2018-04-10 12:36:24 +01:00
Mike Jolley 47fbd79d8f Clear shipping transient when saving shipping method on zones screen 2018-04-10 12:25:09 +01:00
Mike Jolley f9cc65b586 Load gateways before order is saved/email is triggered
Fixes #19655
2018-04-10 12:15:14 +01:00
Mike Jolley cc14ddf1ae
Merge pull request #19658 from woocommerce/fix/19588
Changed county codes for Ireland according to ISO
2018-04-10 12:01:01 +01:00
Mike Jolley df019cfe87
Merge pull request #19664 from woocommerce/fix/19621
Clear comment count transient when cleaning product transients
2018-04-10 12:00:23 +01:00
Peter Fabian 8e8a1ca054 Clear comment count transient when cleaning product transients 2018-04-10 12:12:51 +02:00
Mike Jolley fcb2a3136e
Merge pull request #19660 from AnwerAR/fix/19600-visiblity-dropdown
Fix for #19600 - Visibility dropdown
2018-04-10 10:16:22 +01:00
Anwer AR b68e5743e8 Fix for #19600 - Visibility dropdown not responding in Quick Edit when Stock Management is disabled 2018-04-10 05:19:25 +05:00
Peter Fabian ac1883ee00 Included db update scripts in WC install 2018-04-09 23:24:26 +02:00
Peter Fabian a3d6dc1775 Changed county codes for Ireland according to ISO 2018-04-09 23:15:09 +02:00
Rodrigo Primo d6bfd22dfb Merge branch 'master' of github.com:woocommerce/woocommerce 2018-04-09 18:08:51 -03:00
Rodrigo Primo bf8e005467 Add missing 3.3.4 changes to CHANGELOG.txt 2018-04-09 18:08:15 -03:00
Peter Fabian f40480a3e4
Merge pull request #19642 from saimonh3/fix/19581
Product rating count doesn't update when ratings are edited by admin is fixed #19581
2018-04-09 22:50:40 +02:00
Mohammed Saimon eccd74b71d added checking for invalid ratings while saving 2018-04-09 18:13:13 +06:00
Mohammed Saimon 6d973b98b6 returned data early if nonce checking is failed 2018-04-07 15:13:35 +06:00
Mohammed Saimon 6f36133ed5 Product rating count doesn't update when ratings are edited by admin is fixed #19581 2018-04-07 12:50:14 +06:00
Claudio Sanches 900c8fc33f
Merge pull request #19380 from woocommerce/update/19302
Override supports for PayPal to see if credentials exist
2018-04-06 15:44:42 -03:00
Claudio Sanches 2698fdc7aa
Merge pull request #19632 from BrianHenryIE/patch-1
Documentation punctuation fixes: its = posessive
2018-04-06 13:15:31 -03:00
Brian Henry b6f1f68a00
Documentation punctuation fixes: its = posessive 2018-04-05 19:45:14 -07:00
Mike Jolley 3c35320f76
Merge pull request #19610 from woocommerce/fix/19569
Use nbsp to separate * denoting required fields.
2018-04-05 11:02:39 +01:00
Mike Jolley 68c6c16a3b
Merge pull request #19611 from woocommerce/fix/wc_get_page_id-bug
Fixed bug when using asbint() with wc_get_page_id()
2018-04-05 10:55:43 +01:00
Mike Jolley b0d3f732d6
Merge pull request #19615 from woocommerce/fix/variable-passed-by-reference
Fixed PHP notice in WC_Product_CSV_Importer_Controller->handle_upload
2018-04-05 10:53:52 +01:00
Mike Jolley cf517c50d1
Merge pull request #19618 from woocommerce/fix/19551
Increase orders table checkbox column size on small devices
2018-04-05 10:49:04 +01:00
Mike Jolley 5172694a3a
Merge pull request #19477 from woocommerce/fix/infinite-scroll
Infinite scroll compatibility
2018-04-05 10:46:44 +01:00