Commit Graph

1538 Commits

Author SHA1 Message Date
Mike Jolley 2c915ba961 Allow quantities less than 1, but not 0. 2018-01-05 12:48:24 +00:00
Mike Jolley effbf87e22 API should generate or set file ID when setting downloads. Closes #18330 2018-01-03 11:02:38 +00:00
lipemat c4cb7d146a support --date_created and --date_created_gmt via wp-cli wc product_review create 2017-12-20 09:54:42 -05:00
Mike Jolley e2f0126936 Filter passed images before processing. 2017-12-12 17:08:01 +00:00
Diego Zanella 218aebd329 Legacy API - Use "edit" context when setting product prices
Ensured that the "edit" context is used when checking if the product is on sale, like it's done when fetching product's regular and sale prices. This prevents price filters from running and, potentially, altering the prices set via the API.

* Ref. https://github.com/woocommerce/woocommerce/issues/17125
* Ref. 6e5cdc60e8
2017-12-11 17:08:53 +00:00
Mike Jolley 1bf47c2a81 API: Use KSES for purchase_note like admin 2017-12-08 11:47:27 +00:00
Claudiu Lodromanean 1a2a332f54
Merge pull request #17939 from woocommerce/feature/17734
Apply Webhooks CRUD into REST API
2017-12-01 10:07:21 -08:00
Claudio Sanches d5f871ad7e [REST API] Fixed errors while creating and updating webhooks 2017-12-01 11:57:29 -02:00
Claudio Sanches 5cda80330d Webhooks secret not mandatory in REST API 2017-12-01 11:48:38 -02:00
Claudio Sanches 46cfe9e3b6 Fixed docblocks 2017-12-01 11:47:45 -02:00
Claudio Sanches 270c0a200e Merge branch 'master' into feature/webhook-crud 2017-11-30 16:55:28 -02:00
Claudio Sanches 4d9203b841 Soft deprecated webhook deliveries REST API endpoints 2017-11-30 16:20:20 -02:00
Claudio Sanches 5e2628c06b REST API v2 webhooks CRUD implementation 2017-11-29 18:08:08 -02:00
Claudio Sanches bc86192120 REST API v1 webhooks CRUD implementation 2017-11-29 17:44:09 -02:00
Claudio Sanches c0a7f0eef0 Fixed category images schema in REST API v1 2017-11-29 10:42:06 -02:00
Claudio Sanches a70d0109c0 Initial webhooks implementation on REST API v1 2017-11-29 10:23:19 -02:00
Gerhard Potgieter 5f534e7388 Change product categories image object schema from name to title to bring docs in line with the actual output. 2017-11-29 11:06:41 +02:00
Claudio Sanches 3011058757 Applied Webhook CRUD into legacy REST API v3 2017-11-28 18:11:53 -02:00
Claudio Sanches de18b383d0 Applied Webhook CRUD into legacy REST API v2 2017-11-28 18:08:46 -02:00
Claudio Sanches 625f50a5bf Allow stdClass in legacy API server add_pagination_headers 2017-11-28 15:11:00 -02:00
Claudio Sanches c6f8e95b97 Merge branch 'master' into feature/webhook-crud 2017-11-28 15:09:10 -02:00
Claudio Sanches 9123656155 [REST API] Fixed date format in reports schema 2017-11-27 10:24:43 -02:00
Mike Jolley 16152bfcf0
Merge pull request #17849 from woocommerce/fix/17818-1
Update REST API schema for backwards compatibility with WP 4.9
2017-11-21 21:53:18 +00:00
Claudio Sanches b74fc8963d Update REST API schema for backwards compatibility with WP 4.9
Closes #17818
2017-11-21 16:15:51 -02:00
Claudio Sanches f289d0e05c Fixed how to delete meta data on REST API v2 2017-11-21 16:05:39 -02:00
Claudio Sanches 13978e496b
Merge branch 'master' into feature/webhook-crud 2017-11-20 10:34:35 -02:00
Claudio Sanches d9d27a9a97 Fixed "tax_class" type in REST API v1 2017-11-17 17:52:12 -02:00
Kelly Dwan 5bb04dd61f Rest API: Update the schema types for tax_class and price 2017-11-16 16:39:14 -05:00
Mike Jolley bdea242019 Schema: Attributes are an array of strings 2017-11-16 19:44:14 +00:00
Claudio Sanches 909b80ae31 Removed "Delete WebHook logs" tool 2017-11-16 15:09:51 -02:00
Mike Jolley 3e7968d37b Merge branch 'master' into pr/16418 2017-11-13 14:37:18 +00:00
James Allan c91698cde3 Fix db warnings when using the "Add Order Indexes" tool 2017-11-10 16:21:28 +10:00
Claudiu Lodromanean 9d0f729703
Merge pull request #17642 from woocommerce/fix/rest-api-orders-dp
[REST API] Fixed default value of "dp" on orders and refunds endpoints
2017-11-09 13:57:24 -08:00
Claudio Sanches b04c7bd71e
Merge pull request #17628 from woocommerce/fix/17624
Change how line items are saved in API
2017-11-09 17:36:39 -02:00
Claudio Sanches 5daf476dfa Properly sanitize and format "dp" 2017-11-09 17:34:25 -02:00
Claudio Sanches c6c8af9187 [REST API] Fixed default value of "dp" on orders and refunds endpoints 2017-11-09 17:23:33 -02:00
Claudio Sanches 22232f29c7 Fixed PHPCompatibility issues
Closes #17625
2017-11-09 16:36:29 -02:00
Mike Jolley 6e08ff0284
Merge pull request #17610 from woocommerce/update/17557
Theme support to declare image sizes
2017-11-09 16:04:22 +00:00
Mike Jolley a9b419c9b2 Load item from order object, not DB directly in API 2017-11-08 12:21:55 +00:00
Mike Jolley cf448398cd Update API 2017-11-07 19:08:06 +00:00
Jan-Paul Kleemans 241e903f9e
Clarify sku param description 2017-11-07 15:55:00 +01:00
Mike Jolley 6701917e5a Remove need for wc_get_core_supported_themes 2017-11-07 12:17:03 +00:00
Claudio Sanches 6e9ad75be5 Category image is a single object 2017-10-25 20:41:31 -02:00
Claudio Sanches 4b90c12db1 Fixed coding standards.
Still missing fix the file name, but I'll leave it for 3.3
2017-10-25 20:40:44 -02:00
Claudio Sanches e7508c2c54 [REST API] Fixed date_on_sale_to_gmt description on products endpoint 2017-10-25 14:06:50 -02:00
Claudio Sanches c17fbf53b4 Fixed coding standards 2017-10-25 14:06:13 -02:00
Gerhard Potgieter 054c4a1100 Merge pull request #17203 from hisman/fix/17043
Show theme overrides that are done through the wc_get_template filter in WooCommerce > Status
2017-10-24 06:02:48 -07:00
Farhad Sakhaei 5062831b50 spelling
spelling
2017-10-23 13:44:44 +03:30
Claudio Sanches c739c80817 [REST API] Fixed variations 'visible' description in schema
Fixes #17249
2017-10-17 14:22:56 -02:00
Claudio Sanches 4bec8f9df5 Fixed coding standards 2017-10-17 14:22:30 -02:00