Commit Graph

15549 Commits

Author SHA1 Message Date
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
Mike Jolley 2cc1504f7e Merge branch 'master' into update/erasure-requests
# Conflicts:
#	includes/class-wc-privacy.php
2018-04-20 16:49:17 +01:00
Mike Jolley f71ffb5f5e Added erasure code and moved into separate classes. 2018-04-20 16:47:58 +01:00
Claudio Sanches c115832c4a
Merge pull request #19802 from woocommerce/update/19786
Throw an error when the order is not loaded on checkout
2018-04-20 11:55:45 -03:00
Claudio Sanches 3ca48187a1
Merge pull request #19803 from tivnet/patch-6
Update class-wc-privacy.php
2018-04-20 11:54:39 -03:00
Gerhard Potgieter 0d84bcc3eb Tweaks as per review 2018-04-20 15:20:43 +02:00
Gregory Karpinsky 3fe4de8a95
Docblock: wc_get_orders returns WC_Order[] 2018-04-20 08:01:53 -04:00
Gregory Karpinsky 8d2b32b622
Update class-wc-privacy.php
Spelling
2018-04-20 07:57:53 -04:00
Mike Jolley 342ce28c61 Throw an error when the order is not loaded on checkout 2018-04-20 11:54:36 +01:00
Mike Jolley eeaebc92a0
Merge pull request #19788 from rnaby/class-wc-rest-customers-controller-update_customer_meta_fields-doc-spelling-fix
Spelling fix
2018-04-20 11:40:22 +01:00
Mike Jolley 7f4f70fbea
Merge pull request #19795 from rnaby/class-wc-api-reports-validate_request-removed-unnecessary-else
Removed unnecessary else condition.
2018-04-20 11:40:02 +01:00
Gerhard Potgieter 03e60f105e Remove unused method 2018-04-20 12:38:25 +02:00
Mike Jolley fe30b4900e
Merge pull request #19798 from tivnet/patch-6
Update wc-template-functions.php
2018-04-20 11:37:39 +01:00
Gregory Karpinsky 88b9f3763e
Update wc-template-functions.php
`wc_privacy_policy_page_id()` has no parameters.
2018-04-19 21:35:02 -04:00
Gregory Karpinsky 02a4538c82
Update wc-template-functions.php
Spelling
2018-04-19 21:19:36 -04:00
Khan M Rashedun-Naby b6cfc6f291 Removed unnecessary else condition. 2018-04-20 01:06:25 +06:00
Khan M Rashedun-Naby 1b7e14a4b6 Spelling fix 2018-04-19 21:10:36 +06:00
Mike Jolley 1d0528b73f
Merge pull request #19778 from woocommerce/fix/inline-docs-admin-attributes
Fixed admin attributes page inline docs
2018-04-19 10:48:36 +01:00
Khan M Rashedun-Naby 9aed8394cb Removed unnecessary else condition check. I think in this situation after early returning the else is redundant. 2018-04-19 11:04:44 +06:00
Claudio Sanches 00bc21135c Fixed admin attributes page inline docs 2018-04-18 15:32:46 -03:00
claudiulodro 3547df00d9 Use min of 1 for number 2018-04-18 09:48:42 -07:00
claudiulodro c15cb09700 Resolve merge conflicts 2018-04-18 09:46:15 -07:00
claudiulodro 754031ce6d Add min to date number 2018-04-18 09:42:32 -07:00
claudiulodro 63972447cb Fix nonexistent function calls 2018-04-18 09:40:23 -07:00
Mike Jolley 33f4fd7b93 Moved to privacy class and updated dummy content. 2018-04-18 17:10:41 +01:00
Mike Jolley 128c9cb0da Merge branch 'master' into update/19739 2018-04-18 17:02:46 +01:00
Beka Rice 7bd9cdacaa Filter the used coupon URL in 'edit order' screen 2018-04-18 11:49:35 -04:00
Claudio Sanches 9679e7be1f
Merge pull request #19772 from woocommerce/update/notice-display
Only show notices on specific screens
2018-04-18 12:23:11 -03:00
Mike Jolley d381330a91
Merge pull request #19705 from woocommerce/fix/19619
Handling of PHP's automatic array key conversion to int
2018-04-18 15:40:31 +01:00
Claudiu Lodromanean 48eb13d602
Merge pull request #19747 from woocommerce/update/19734
Add privacy policy to account pages
2018-04-18 07:26:06 -07:00
Gerhard Potgieter 3f785d8964 Remove unused variables and merge correct ones. 2018-04-18 16:10:37 +02:00
Gerhard Potgieter a15687470d Move fist and last date into one query 2018-04-18 16:07:54 +02:00
Peter Fabian 4538f3fa8f Moved wc_selected to core functions. 2018-04-18 15:54:57 +02:00
GlennMartin1 256a4d96e2
grammar fix... 2018-04-18 09:11:32 -04:00
Mike Jolley fc8e7be3ab Only show notices on specific screens 2018-04-18 14:08:31 +01:00