Claudiu Lodromanean
6dbd5d5323
Merge pull request #20731 from woocommerce/add/20724
...
Do not load all tables in multisite system status
2018-07-11 13:42:52 -07:00
Gerhard Potgieter
3cda8c439c
Better table matching on multisite, hat tip to @claudiulodro for pointing me in the right direction.
2018-07-11 11:19:10 +02:00
Gerhard Potgieter
beaa610cc0
Only load tables for system that is part of current multisite, this avoids displaying all tables in a MS speeding up page load, and also prevent divulding tables on other sites in the MS environment.
2018-07-09 13:48:05 +02:00
Mike Jolley
a480cff0d2
Logic is not grouped specific; only for product types with children
2018-06-29 15:24:17 +01:00
Eleanor Martin
c94a5df7a4
Allowing API deletion of grouped products. #20666
2018-06-29 15:01:10 +01:00
Claudiu Lodromanean
d0491072e8
Merge pull request #17895 from woocommerce/update/use-post-author-for-customer-id
...
Use post_author instead of the post meta '_customer_user'
2018-06-25 11:23:59 -07:00
Mike Jolley
66ae57699a
Return error code if parent is invalid
2018-06-19 12:54:57 +01:00
Rodrigo Primo
43d22a2349
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-18 15:17:19 -03:00
Claudiu Lodromanean
ee47ceb361
Merge pull request #20537 from woocommerce/update/transactions-revert
...
Transactions, caching, and version transient cleanup issues
2018-06-15 09:11:23 -07:00
Mike Jolley
ce1810cd1a
Merge pull request #20497 from woocommerce/fix/20485
...
API: Order images by position before saving
2018-06-14 15:24:49 +01:00
Mike Jolley
9f86839cab
Remove wc_transaction_query in favour of logging
2018-06-14 14:39:18 +01:00
Mike Jolley
fcd23567f6
Clear transients tool; clear wc_layered_nav_counts
2018-06-12 12:31:15 +01:00
Mike Jolley
cfda380d2f
API: Order images by position before saving
2018-06-12 12:13:10 +01:00
Rodrigo Primo
dd8bf8b522
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-11 10:44:14 -03:00
Peter Fabian
db9d2f2c30
Made path /orders/refund_id return invalid order id msg.
2018-06-07 13:26:29 +02:00
Mike Jolley
79c34ba843
Merge pull request #20089 from woocommerce/fix/20042
...
Allow oAuth1.0a under SSL
2018-05-30 15:37:45 +01:00
Mike Jolley
0bfd675238
Wrapper function to get full mysql version string with mariadb handling
2018-05-25 11:15:30 +01:00
Mike Jolley
faa09deff1
Recalc taxes if address changes in API
2018-05-18 21:47:04 +01:00
Claudio Sanches
dbec84e0a9
Allow oAuth1.0a under SSL
...
Closes #20042
2018-05-15 23:51:59 +01:00
Rodrigo Primo
c49059ce7a
Merge branch 'master' into update/use-post-author-for-customer-id
2018-05-08 17:34:09 -03:00
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
Claudiu Lodromanean
ccededa35c
Merge pull request #19971 from woocommerce/fix/19964
...
Fix: WC API should not try to create a product image if an empty image is passed
2018-05-07 10:48:10 -07:00
Rodrigo Primo
c7a9550691
Fix: WC API should not try to create a product image if empty image is passed
...
Currently if you try to create a product variation passing an empty array as the value of the image key using WC API:
Endpoint: `wp-json/wc/v2/products/PRODUCT_ID/variations`
Payload: `{ "attributes" : [ { "id" : 1, "name" : "color", "option" : "Green" } ], "dscription" : "Green Tea Variety", "image" : {} }`
WC will return the following error:
```
{ "code": "woocommerce_product_invalid_image_id", "data": { "status": 400 }, "message": "#0 is an invalid image ID." }
```
This is happening because the code that handles image creation
(4e42b2cd30/includes/api/class-wc-rest-product-variations-controller.php (L292)
) is not checking if `$request['image']` is empty before adding a new `position` key to it. To fix this problem, this commit simply adds a check to see if `$request['image']` is empty before proceeding.
Fixes #19964
2018-05-04 10:47:39 -03:00
Gerhard Potgieter
96d84b2813
Revert "Update the actual message and not just the test :)"
...
This reverts commit 9607fbcdd8
.
2018-05-04 11:57:26 +02:00
Gerhard Potgieter
9607fbcdd8
Update the actual message and not just the test :)
2018-05-04 09:24:05 +02:00
Gerhard Potgieter
e6e03858a0
Add call to tracking API when opting out to comply with GDPR erasure.
2018-05-04 09:10:18 +02:00
Mike Jolley
d584ed72b9
Merge pull request #19930 from woocommerce/update/19925-api-order-refund-schema
...
Update refunds items schema to match actual response keys.
2018-05-02 18:06:30 +01: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
Gerhard Potgieter
4a39d8b8cc
Update refunds items schema to match actual response keys.
2018-05-02 10:13:51 +02:00
claudiulodro
4da458a9df
Tool for cleaning up permissions table
2018-05-01 12:35:37 -07:00
Mike Jolley
17ad9dac06
Update docs
2018-05-01 10:15:51 +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
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
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
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
Mike Jolley
903e3e8acd
Fix featured filter
2018-04-10 14:58:06 +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
4e42b2cd30
Handle manage_stock mixed content for variations
2018-04-03 17:46:43 +01:00
Mike Jolley
f98eb66f8c
Webhooks do not need permission checks
2018-03-23 12:45:10 +00:00
Claudio Sanches
b0617a13c4
Removed unnecessary ternary operators
2018-03-21 20:05:19 -03:00
Claudio Sanches
0660a50e07
Removed obvious boolean results
2018-03-21 19:57:10 -03:00
Mike Jolley
6539b7913e
Merge branch 'master'
2018-03-19 18:05:36 +00:00
Claudio Sanches
f0d37ff4f5
Fixed PHPCS violations on REST API
2018-03-06 15:04:58 -03:00
Claudio Sanches
e8017e985b
Fixed coding standards issues with PHPCBF
2018-03-05 17:53:06 -03:00
Mike Jolley
f162fdb9d1
Merge branch 'master' into update/17795
2018-03-01 12:13:14 +00:00
Mike Jolley
cceec55714
Fix error in unit tests due to missing object check
2018-02-27 16:32:59 +00:00
Claudio Sanches
69044423d2
[REST API] Do not allow updating parent ID from variations after created
...
Closes #18933
2018-02-22 16:22:42 -03:00
Claudio Sanches
b64b2a8680
Fixed coding standards
2018-02-22 16:00:21 -03:00
Claudio Sanches
f60cd7cca4
[REST API] Fixed products shipping_class_id type
2018-02-20 17:16:26 -03:00