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 |