Peter Fabian
8789642fb9
Add protocol to URLs for thumbnails in cart.
...
Removed wc_get_relative_url(), as it's not used anymore.
2018-05-02 14:34:50 +02:00
Manos Psychogyiopoulos
1895bbe3f3
Deprecate woocommerce_ajax_added_order_items action
2018-05-02 14:49:24 +03:00
Mike Jolley
2e78259452
Compatibility with 4.9 branch
2018-05-02 11:45:02 +01:00
Gerhard Potgieter
992a46c513
Do not unset parent_id when 0 but actuall handle 0 as it can be passed to wp_insert_term.
2018-05-02 12:19:56 +02:00
Gerhard Potgieter
5a2da43733
After talking with @mikejolley we decided it would be better to stick to the original schema, reason makes more sense.
2018-05-02 12:12:06 +02:00
Mike Jolley
6ccf5b14fa
Merge pull request #19922 from woocommerce/fix/downloadcleanup
...
Tool for cleaning up permissions table
2018-05-02 10:41:39 +01:00
Gerhard Potgieter
4a39d8b8cc
Update refunds items schema to match actual response keys.
2018-05-02 10:13:51 +02:00
Gerhard Potgieter
61e624b937
Allow parent:0 param passing when updating a term via the API
2018-05-02 08:44:06 +02:00
Gerhard Potgieter
2124972232
If 0 is supplied as parent ID simply remove it before creating the term. 0 means no parent.
2018-05-02 08:31:28 +02:00
Gerhard Potgieter
bfa2b017d1
Include pending products in the export
2018-05-02 07:47:55 +02:00
claudiulodro
4da458a9df
Tool for cleaning up permissions table
2018-05-01 12:35:37 -07:00
Claudiu Lodromanean
390288e283
Merge pull request #19914 from woocommerce/update/gdpr-log-audit
...
GDPR - log audit
2018-05-01 09:57:36 -07:00
Mike Jolley
d85dd36195
Use new methods and fix phpcs
2018-05-01 16:37:44 +01:00
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
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
Mike Jolley
e201b74832
Merge pull request #19756 from woocommerce/feature/19735
...
Notice about HTTPS as a requirement
2018-04-18 13:53:54 +01:00
Mike Jolley
5455e7049b
Update notice text
2018-04-18 13:52:59 +01:00
Mike Jolley
29961b540a
Fix up query
2018-04-18 12:04:53 +01:00