Khan M Rashedun-Naby
b6cfc6f291
Removed unnecessary else condition.
2018-04-20 01:06:25 +06:00
Mike Jolley
903e3e8acd
Fix featured filter
2018-04-10 14:58:06 +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
ee6794fb0c
Orders should be created for users who exist on the site only.
2018-01-10 12:32:58 +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
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
Claudio Sanches
4d9203b841
Soft deprecated webhook deliveries REST API endpoints
2017-11-30 16:20:20 -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
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
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
840da4f0c8
Use edit context when updating prices in the API
...
Fixes #17125
2017-10-13 16:37:38 +01:00
claudiulodro
133b664cc3
Only set prices if set in request
2017-09-17 11:44:00 -07:00
Claudio Sanches
3f12fd1b01
Fixed missing hooks in legacy REST API
2017-08-10 18:57:31 -03:00
Jaydeep Rami
46d3638089
Fix missing return statement ( #16148 )
...
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
2017-07-20 18:01:14 +01:00
Jaydeep Rami
3522857d23
Fix typo in WooCommerce plugin ( #16135 )
...
* Fixed typo
* Fixed more typo
* Fixed more typo
* Fix tyop
* Fix more typo
* Fix more typo
* Fix typo
* Fix typo
* Fix typo
* Fix typo datatime object
* Fix short name of compat
* Fix typo: update short name
* Fix typo "deactive" to "deactivate" and short BW - Compat
* Fix typo "Backwards compat"
* Fix typo 'parameters'
* Fix more typo 'pararmeters'
* Fix typo 'compund'
* FIx typo order
* Fix typo
* Fix typo 'incorrecly'
* Fix typo 'genarate'
* Fix typo 'reletive'
* Fix typo 'Handly'
* Fix typo 'rotatated'
* Fix typo
* Fix typo 'additonal'
* Fix typos
2017-07-17 11:10:52 +01:00
Claudio Sanches
eb4caec13e
Applies wc_delete_order_note() and properly delete notes by AJAX
2017-07-13 19:38:37 -03:00
Claudio Sanches
4262e83187
[REST API] Check if is a valid instance of WC_Product before load data
...
Closes #16072
2017-07-11 12:27:56 -03:00
Claudio Sanches
78a6585f19
[REST API] Allow unset product shipping_class
...
Closes #15960
2017-07-04 14:01:17 -03:00
claudiulodro
4515e5fca9
Fix undefined/incorrectly used variables
2017-06-09 14:10:55 -07:00
Mike Jolley
1e8e40565d
Avoid deprecated ID in API. Fixes #15437
2017-06-05 10:45:10 +01:00
Mike Jolley
c16acc6b51
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
2017-05-23 19:00:24 +01:00
Mike Jolley
d3666738d8
Merge branch 'pr/15069'
2017-05-23 18:56:58 +01:00
Mike Jolley
00e5189a05
Merge pull request #15070 from rasmusbe/phpdoc-missing-return-throws
...
Phpdoc: Add missing return and throws
2017-05-23 18:50:58 +01:00
Mike Jolley
d1b49888f2
Missing variable in legacy API
...
Fixes #15203
2017-05-22 13:25:33 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Rasmus Bengtsson
4a3902cd48
PHPDoc: Add missing throws statement
2017-05-15 13:39:03 +02:00
Rasmus Bengtsson
4f00d7e5e3
PHPDoc: Add missing return statement
2017-05-15 13:37:59 +02:00
Claudio Sanches
7ba011a3b8
Properly save order items in legacy REST API
...
Closes #14917
2017-05-08 12:37:33 -03:00
Mike Jolley
aacb01d1e7
Merge branch 'pr/13503'
...
# Conflicts:
# assets/css/twenty-seventeen.css
# assets/css/woocommerce-layout.css
# assets/css/woocommerce-layout.scss
# assets/css/woocommerce.css
2017-04-27 12:46:05 +01:00
Claudio Sanches
f318ce935c
[REST API] Fixed ignored parameters when changing status
...
Prevent override saved data when updating order status.
Fixes #14359
2017-04-18 21:15:24 -03:00
Mike Jolley
d81493cc52
Merge pull request #14229 from woocommerce/fix/14184
...
[REST API] Fixed line_items meta type to array on legacy REST API
2017-04-11 10:32:17 +01:00
Claudio Sanches
4a5a93f629
Merge pull request #14107 from woocommerce/fix/rest-api-legacy-v3-variations
...
[REST API] Fixed missing $variations variable in legacy v3
2017-04-10 20:19:43 -03:00
Claudio Sanches
5c92f9141b
[REST API] Fixed line_items meta type to array on legacy REST API
...
Closes #14184
2017-04-10 19:57:35 -03:00
Mike Jolley
84c96046f0
Check objects are not false/null
2017-04-07 16:01:51 +01:00
Claudio Sanches
8de0bb0a46
[REST API] Fixed missing $variations variable in legacy v3
2017-04-07 10:31:28 -03:00
Claudio Sanches
87199d0627
[REST API] Fixed attributes while trying to save variations
...
Closes #13936
2017-04-05 17:03:05 -03:00
Mike Jolley
14802a0307
Remove double unserialization
2017-03-31 12:10:20 +01:00
Claudio Sanches
b8faa2197c
[REST API] Fixed default_attributes in legacy REST API
2017-03-23 17:23:12 -03:00
Mike Jolley
196ba7b770
Ensure we have a product before checking if it exists
...
Fixes #13642
2017-03-17 16:26:26 +00:00
Mike Jolley
8d0a4a3caf
Use correct getter in legacy API for get_discount
...
Fixes #13635
2017-03-17 14:37:19 +00:00
Claudio Sanches
1aa8218b26
Fixed oauth signature replacing spaces by plus sign
...
oAuth signatures are encoded by base64, that can generate plus signs.
See RFC 4648 <http://www.rfc-editor.org/rfc/rfc4648.txt >
By default plus signs in query params are replaced into spaces while
trying to access by super globals like $_GET and $_POST
Closes #13615
2017-03-16 14:23:45 -03:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
943c507d3f
Merge pull request #13606 from woocommerce/fix-13525-api
...
Fix 13525 api
2017-03-15 15:43:45 +00:00
Claudiu Lodromanean
bbfea35cf0
API tweaks from feedback
2017-03-15 08:10:42 -07:00