Commit Graph

1645 Commits

Author SHA1 Message Date
Adrian Jagusch dc8d15356b
Ensure coding standards on #20914 2018-07-27 11:38:57 +02:00
Adrian Jagusch 7b7bccaf21
Ensure coding standards on #20914 2018-07-27 10:51:15 +02:00
Adrian Jagusch 2a2345acae
Fixes #20914 2018-07-26 17:32:08 +02:00
Claudiu Lodromanean a0b4a8df03
Merge pull request #20611 from woocommerce/fix/20349
Allow filtering variations by attributes in API.
2018-07-24 10:25:36 -07:00
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
Peter Fabian 47d0bb7b6a Removed variables that are not needed. 2018-07-11 13:44:43 +02: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
Peter Fabian 3af9c1e95b Merge branch 'master' into fix/20349
# Conflicts:
#	tests/framework/helpers/class-wc-helper-product.php
#	tests/unit-tests/api/products.php
2018-07-09 18:18:06 +02:00
Peter Fabian 2839dba7d2 Switched implementation of variation query parameters in the API from SQL query adjustment to one extra parent query. 2018-07-09 17:14:12 +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
Peter Fabian ef3d32699c Fixed missing key errors. 2018-06-23 13:55:42 +02: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
Peter Fabian 1a3b5b165d Factor out parent table name to variable, allow big SELECT. 2018-06-18 10:15:36 +02: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
Peter Fabian 9ce165d75e Added extra join with parent product to filter variable products from REST API 2018-06-05 13:22:22 +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