Commit Graph

15583 Commits

Author SHA1 Message Date
Mike Jolley e9b0c6deec clear_expired_logs and date based clearing functions 2018-05-01 16:37:30 +01:00
Claudiu Lodromanean 78f454fea3
Merge pull request #19918 from woocommerce/update/query-reduction-tweaks
Query reduction tweaks
2018-05-01 08:37:25 -07:00
Mike Jolley e8f3bac6c8 Implement log cleanup cron job (woocommerce_cleanup_logs) 2018-05-01 16:37:14 +01:00
Mike Jolley 113a27fba9 Privacy page content 2018-05-01 14:36:47 +01:00
Mike Jolley 250b7aecd5 Update function to set last active 2018-05-01 14:13:38 +01:00
Mike Jolley 43f6a5114c Typos and unused variables 2018-05-01 13:54:18 +01:00
Mike Jolley f59acf1350 Merge branch 'master' into update/erasure-requests 2018-05-01 13:46:53 +01:00
Mike Jolley 1d61f6fb01
Merge pull request #19894 from woocommerce/fix/woocommerce-delete-version-transients-limit
Don't schedule event to delete transients if limit set to 0
2018-05-01 13:36:34 +01:00
Mike Jolley 461dfd6489 Avoid query if no limit is set. 2018-05-01 13:26:57 +01:00
Mike Jolley e77677def2
Merge pull request #19913 from Chouby/woocommerce_cart_item_data_to_validate
Improve filter 'woocommerce_cart_item_data_to_validate'
2018-05-01 13:04:13 +01:00
Mike Jolley 828c1e3a7c Merge branch 'pr/19912' 2018-05-01 13:00:57 +01:00
Mike Jolley 4487463bb4 PHPCS 2018-05-01 13:00:49 +01:00
Mike Jolley 0e4d958571 Prime caches 2018-05-01 12:39:18 +01:00
Mike Jolley b357aa3e0f Prime post caches in shortcodes to reduce queries. 2018-05-01 12:31:17 +01:00
Mike Jolley 3c34394296 Set more defaults to reduce query count 2018-05-01 12:15:57 +01:00
Mike Jolley 8e0f0cbc29 Lazy load children and attributes for variable products 2018-05-01 11:57:00 +01:00
Mike Jolley e677340fcc No need to load tax rates when taxes are disabled 2018-05-01 11:56:39 +01:00
Mike Jolley 9d23ebf4e3 This setting should be autoloaded as it's used in the catalog. 2018-05-01 11:56:22 +01:00
Mike Jolley dbd7f2d2e4 Pass autoload when saving options 2018-05-01 11:54:20 +01:00
Mike Jolley 17ad9dac06 Update docs 2018-05-01 10:15:51 +01:00
Mike Jolley 2672c0bb16 Clear order notes during anonymization 2018-04-30 18:34:46 +01:00
Mike Jolley 57ae8285b6 Mask logged PayPal data. 2018-04-30 18:17:12 +01:00
Mike Jolley aef46ce8d3 Clear paypal logs when debug mode is turned off. 2018-04-30 18:04:52 +01:00
Mike Jolley 610e9b0989 Add disclaimer to debug logging setting 2018-04-30 17:30:55 +01:00
Mike Jolley d14e59cdb0 Remove some PII from paypal logs and avoid storing custom meta from responses 2018-04-30 17:30:39 +01:00
Norcross a9cd0d9bd8 including `isset` check for nonce variable. 2018-04-30 11:55:03 -04:00
Frédéric Demarle fa4b1a741e Add $product as 2nd param in filter woocommerce_cart_item_data_to_validate 2018-04-30 17:48:22 +02:00
Mike Jolley 59866b679c Do not log body for webhooks unless debug mode is turned on. 2018-04-30 16:24:23 +01:00
Mike Jolley cdec3321ac Broken log due to variable 2018-04-30 16:23:49 +01:00
Claudiu Lodromanean 3943a3b9dc
Merge pull request #19907 from woocommerce/update/include-future-products-export
Include scheduled products in the export.
2018-04-30 08:04:41 -07:00
Mike Jolley 6f6f15d22a Link to erasure page 2018-04-30 15:41:38 +01:00
Mike Jolley c765ce644d Inactive account handling 2018-04-30 15:38:45 +01:00
Gerhard Potgieter a48fababe2
Merge pull request #19842 from woocommerce/fix/19831
Extensions helper caching fixes
2018-04-30 14:18:40 +02:00
Mike Jolley bda186338c Adds the template to the fragment name so that switching themes invalidates any fragments created under the previous theme 2018-04-30 11:28:51 +01:00
Gerhard Potgieter 3f87b3e009 Include scheduled products in the export. 2018-04-30 07:36:00 +02:00
Claudio Sanches 877cc29604 Ensure coupon amount is always a float value
Closes #19889
2018-04-27 18:03:04 -03:00
Claudio Sanches 96c538bf4a Fixed coding standards for #19866 2018-04-27 16:00:53 -03:00
Claudio Sanches b7f1d20148 Fixed coding standards 2018-04-27 15:43:27 -03:00
Rodrigo Primo 18a8a6b752 Don't schedule event to delete transients if limit set to 0
Third-party code can set the limit of transients to be deleted to 0 using the filter `woocommerce_delete_version_transients_limit`. If this happens, the code shouldn't schedule a cron event to delete more transients to avoid flooding the list of cron jobs.

Fixes #19890
2018-04-27 10:31:45 -03:00
Mike Jolley 495cfb44ce
Merge pull request #19880 from woocommerce/add/adjust-priority-privacy-exporters
Reduce priority value for WooCommerce personal data exports
2018-04-27 10:38:00 +01:00
Claudiu Lodromanean 3b24aa9791
Merge pull request #19877 from woocommerce/fix/19863
Fix CSV import cleanup methods
2018-04-26 13:05:27 -07:00
claudiulodro 0b51ad006e Spelling fix 2018-04-26 13:04:09 -07:00
Claudiu Lodromanean 88a13b02db
Merge pull request #19876 from woocommerce/fix/product-type-filter
Fix: product type filter should show selected product type
2018-04-26 11:56:04 -07:00
Claudiu Lodromanean 0bf2dfbca8
Merge pull request #19872 from woocommerce/update/email-restrictions-text
Updates email restrictions label so it's clear this is a whitelist
2018-04-26 11:49:54 -07:00
Claudiu Lodromanean 0e20fb0768
Merge pull request #19861 from rnaby/250418-222543-wc-product-variation
Rewritten the logic and cleaned the code.
2018-04-26 11:46:21 -07:00
Claudiu Lodromanean 08088f15a9
Merge pull request #19858 from rnaby/250418-221130-wc-customer-data-store
Removed redundant else statement and inverted the early return
2018-04-26 11:21:41 -07:00
Allen Snook 65311c41c7 Reduce priority value for WooCommerce personal data exports 2018-04-26 10:50:37 -07:00
Mike Jolley 0d4401d9a8
Merge pull request #19871 from woocommerce/update/gdpr-defaults
Fix GDPR defaults
2018-04-26 17:22:03 +01:00
Mike Jolley 970a77b43b This was not needed after all. 2018-04-26 17:18:39 +01:00
Claudiu Lodromanean 9b37eb980f
Merge pull request #19848 from woocommerce/tweak/support-payment_method_in
Support payment_method_in when selecting orders
2018-04-26 08:26:33 -07:00
Mike Jolley b4657d5a42 Status must be set after import 2018-04-26 16:06:04 +01:00
Mike Jolley 90c5cf67fa Fixed data cleanup after failed import 2018-04-26 16:05:12 +01:00
Boro Sitnikovski d6b4ca980c Add support for arrays when building meta query args 2018-04-26 16:49:49 +02:00
Rodrigo Primo 49855b4676 Fix: product type filter should show selected product type
Since admin lists were refactored in 8f37ea33ed, a bug was introduced that prevented the "Filter by product type" select box in the products list page in the admin from showing the selected product type when filtering by "Downloadable" products. Before marking this option as selected, the code was checking if `$wp_query->query['product_type']` is set. This check made sense before the refactor (see 8f37ea33ed (diff-a116210e8adc50b0853846ba935daaadL1544)) but it doesn't make sense anymore. In the new method, `$wp_query` is not even used.
2018-04-26 10:02:44 -03:00
Mike Jolley b1dfc31d4e Remove tx id 2018-04-26 13:15:14 +01:00
Mike Jolley ef69c27f25 Updates email restrictions label so it's clear this is a whitelist 2018-04-26 12:58:08 +01:00
Mike Jolley ffc5fc6b74
Merge pull request #19865 from rnaby/260418-090005-wc-checkout
Method refactored
2018-04-26 12:37:08 +01:00
Mike Jolley 79c6c6c61b
Merge pull request #19866 from rnaby/260418-091223-wc-checkout
get_value method refactored
2018-04-26 12:34:46 +01:00
Mike Jolley 6a1cd802bc
Merge pull request #19868 from rnaby/260418-101617-wc-checkout
process_order_without_payment method redundant else removed
2018-04-26 12:29:14 +01:00
Mike Jolley e6eaa4f83c Fix colorpicker styling 2018-04-26 12:21:17 +01:00
Mike Jolley ccff8ecd17 Fix policy text preview in customizer. 2018-04-26 12:11:11 +01:00
Mike Jolley d73d15a73d Phone was required in 3.3 - set default 2018-04-26 11:52:36 +01:00
Mike Jolley e15a4f63a0 Update defaults so account creation is disabled until setup by admin 2018-04-26 11:50:15 +01:00
Mike Jolley 091d5326f2 Update abstract class and privacy code 2018-04-26 11:29:51 +01:00
Khan M Rashedun-Naby c235d05446 process_order_payment method redundant else removed. 2018-04-26 10:24:31 +06:00
Khan M Rashedun-Naby dfcec0ce39 process_order_without_payment method redundant else removed 2018-04-26 10:18:47 +06:00
Khan M Rashedun-Naby e1fea55cb6 get_value method refactored 2018-04-26 09:40:58 +06:00
Khan M Rashedun-Naby 6714d47e8d Some more clean up 2018-04-26 09:11:36 +06:00
Khan M Rashedun-Naby d7458493c6 get_checkout_fields method refactored 2018-04-26 09:03:51 +06:00
Khan M Rashedun-Naby 98a13a0fc2 Rewritten the logic and cleaned the code. 2018-04-25 22:54:17 +06:00
Khan M Rashedun-Naby c174316bf8 Removed redundant else statement and inverted the early return 2018-04-25 22:21:21 +06:00
Mike Jolley 2f6d2b857b
Merge pull request #19833 from rnaby/240418-091920-wc-admin-log-table-list
Inverted the condition based returns.
2018-04-25 12:00:34 +01:00
Mike Jolley 6694d64ef6
Merge pull request #19845 from woocommerce/feature/19840
Trigger GeoLite2 database download after update
2018-04-25 11:59:46 +01:00
Khan M Rashedun-Naby f1c359859b Removed redundant else 2018-04-25 14:35:30 +06:00
Boro Sitnikovski 92cd1ec0d8 Abstract out privacy class so that extensions can easily re-use it 2018-04-25 02:13:59 +01:00
Boro Sitnikovski e891e3ed7d Support payment_method_in when selecting orders 2018-04-25 01:40:29 +01:00
Claudio Sanches d496e28d08 Trigger GeoLite2 database download after update
Closes #19840
2018-04-24 15:32:27 -03:00
Claudio Sanches 574c829096 Introduced function to check if geolocation is enabled 2018-04-24 15:22:12 -03:00
Mike Jolley c8005a8c00 Wording updates 2018-04-24 16:47:55 +01:00
Mike Jolley f9c3ed14e4 Fix transient clearing 2018-04-24 15:44:30 +01:00
Mike Jolley d6a6356d53 After activating a subscription, caches for updates must be purged 2018-04-24 15:43:52 +01:00
Mike Jolley 6d9bacb982 Removes freegeoip service 2018-04-24 14:32:21 +01:00
Mike Jolley da9c99a12f
Merge pull request #19837 from woocommerce/update/obw-tracker-request
Delay tracking request
2018-04-24 13:23:31 +01:00
Gerhard Potgieter 07dcf77f6f Deffer first tracker send to a cron instead of direct calling it. 2018-04-24 14:16:41 +02:00
Mike Jolley cb9dab21d6
Merge pull request #19822 from woocommerce/fix/19790-positive-page-id
Do not load unsupported theme functionality when shop page -1
2018-04-24 12:29:22 +01:00
Gerhard Potgieter fc43bd2410 Delay tracking request by 10 seconds to allow for page load to complete first. 2018-04-24 12:42:06 +02:00
Gerhard Potgieter 56c539681b Yoda, you must! 2018-04-24 07:18:09 +02:00
Khan M Rashedun-Naby 845097f42a Inverted the condition based returns. 2018-04-24 09:21:33 +06:00
Mike Jolley 0f71eb15bf
Merge pull request #19712 from woocommerce/update/wc-tracker
Tracker Changes
2018-04-23 19:28:14 +01:00
Claudio Sanches 9ac00e1986 Use trailingslashit() instead of DIRECTORY_SEPARATOR
This will avoid any double `/` and should work on Windows too.
2018-04-23 14:19:42 -03:00
Claudio Sanches 9d99ca4c47
Merge pull request #19812 from shivapoudel/fix/19742
Fix - Notice while downloding GeoIP DB on Windows
2018-04-23 14:17:37 -03:00
Shiva Poudel 0c5d6dd285 Tweak - Use of trailingslashit instead 2018-04-23 22:07:14 +05:45
Gerhard Potgieter 8c677d9214
Merge pull request #19821 from haydenw/haydenw-patch-1
Pass `$flat` variable to `woocommerce_order_items_meta_display` filter
2018-04-23 14:02:21 +02:00
Gerhard Potgieter ca9865beeb Ensure shop_page_id is > 0 before loading the unsupported theme functionality. In some cases shop_page_id can be -1 which will result in a true as only 0 is seen as false. 2018-04-23 09:47:21 +02:00
Hayden Whiteman 1c8d5d42d1
Pass `$flat` variable to `woocommerce_order_items_meta_display` filter
Allow 3rd parties to determine if output should be flat.
2018-04-23 13:45:07 +12:00
Eric Daams 956dc6b9b9 Fixes spelling mistake in privacy policy content snippet. 2018-04-23 09:50:08 +09:30
Shiva Poudel a4b5f0bef4 Fix - Notice while downloding GeoIP database on Windows
DIRECTORY_SEPARATOR was the culprit :)

CC @claudiosanches

Closes #19742
2018-04-21 02:43:37 +05:45
GlennMartin1 da6000a633
Update class-wc-admin-help.php 2018-04-20 14:25:11 -04:00
GlennMartin1 ab929c5ae3
correct two links in Help tab 2018-04-20 14:20:39 -04:00
Claudio Sanches 781d38dc51 Removed undefined wp_json_decode() function from PayPal response
Closes #19807
2018-04-20 13:26:05 -03:00