Mike Jolley
402d0ff077
Merge branch 'master' into pr/11797
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
# includes/api/class-wc-rest-coupons-controller.php
# includes/class-wc-coupon.php
# tests/unit-tests/api/coupons.php
# tests/unit-tests/coupon/crud.php
2016-09-01 11:43:31 +01:00
Justin Shreve
de4296dd15
Add some missing API pieces:
...
* Value was missing from the settings schema (but was still present in the response).
* Added delete endpoint for shipping zones.
* Corrected permissions check/error for shipping zone methods.
2016-08-29 10:22:29 -07:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
Justin Shreve
9adce86239
Use the new REST unit test base class
2016-07-26 14:19:50 -07:00
Justin Shreve
226fdb870b
Misc cleanup of descriptions and some error strings.
2016-07-26 10:24:15 -07:00
Jeff Stieler
2fcb15d9cf
Rename WC_Rest_Settings_Groups_Controller to WC_Rest_Settings_Controller.
2016-07-26 10:24:15 -07:00
Jeff Stieler
f168f356bc
Rename WC_Rest_Settings_Controller to WC_Rest_Settings_Options_Controller.
2016-07-26 10:24:15 -07:00
Jeff Stieler
a0f227a17c
Add test coverage for all WP_Error-returning cases in the Settings API.
2016-07-26 10:24:15 -07:00
Jeff Stieler
cca2a0ff5e
Reuse WC Admin Setting’s save_fields() instead of duplicating code for sanitizing saved values.
2016-07-26 10:24:15 -07:00
Jeff Stieler
83d252b6d3
Remove namespace from Settings API unit test file.
...
This fails builds on PHP 5.2.x.
2016-07-26 10:24:15 -07:00
Jeff Stieler
95990e32ca
Fix unit tests.
2016-07-26 10:24:15 -07:00
Justin Shreve
3de423b5c2
Wrap up settings api
2016-07-26 10:24:15 -07:00
Justin Shreve
5de870bb08
Wrap up settings endpoints for updating, finish tests.
2016-07-26 10:24:15 -07:00
Justin Shreve
46028e0151
Refactor down to two concepts - settings groups and settings. Fix up tests, and start working on returning actual settings and their values.
2016-07-26 10:24:15 -07:00
Justin Shreve
8fee6bd3b9
Add a test for settings groups, make sure any bad keys/values are filtered out, update docs.
2016-07-26 10:24:15 -07:00
Justin Shreve
12aa11d5be
Misc cleanup.
2016-07-26 10:24:15 -07:00
Justin Shreve
19d3bc4737
Add a permissions check to the locations endpoints and fill out the tests for them.
2016-07-26 10:24:15 -07:00
Justin Shreve
21b66f94ff
More setting location tests.
2016-07-26 10:24:15 -07:00
Justin Shreve
5ee4b5d4dd
Add the ability to get data on a single location.
2016-07-26 10:24:15 -07:00
Justin Shreve
11a3c89a2f
Make /settings/locations work properly. Add skeleton for tests and add register_routes test.
2016-07-26 10:24:15 -07:00
Justin Shreve
a9bb988873
Initial /settings API controller and /settings/locations route. Loads the WP-API and registers our namespace temporarily until WP-API is loaded by WC core.
2016-07-26 10:24:15 -07:00