Job
|
71b3a8b95c
|
Merge remote-tracking branch 'woothemes/master'
|
2016-07-20 11:35:06 +02:00 |
Justin Shreve
|
ec2c82347f
|
Move WP-APIs test server code to a vendor directory, make sure it matches the version of the other vendor files.
|
2016-07-19 11:38:18 -07:00 |
Mike Jolley
|
e493ff5693
|
readme
|
2016-07-19 19:34:23 +01:00 |
Claudio Sanches
|
d35bbc01fa
|
POT
|
2016-07-19 15:28:34 -03:00 |
Justin Shreve
|
57fd38c1a8
|
Misc cleanup of descriptions and some error strings.
|
2016-07-19 11:24:05 -07:00 |
Mike Jolley
|
69c203b170
|
Readme
|
2016-07-19 19:09:33 +01:00 |
Mike Jolley
|
e1a5bb1f28
|
Escape caption in product-images.php
|
2016-07-19 19:09:33 +01:00 |
Mike Jolley
|
40351f7e63
|
Escape caption in product-thumbnail template
|
2016-07-19 19:09:33 +01:00 |
Jeff Stieler
|
35f0d77e7d
|
Call register_legacy_settings() directly instead of adding another hook.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
d1eaf3851a
|
Remove now defunct WP API vendor file.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
18c8d12eaa
|
Move legacy setting API registration hooks into main WC_API class.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
d8fec21147
|
Remove now defunct WC_REST_Settings_API_Controller class.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
9cfe89bbb6
|
Remove WC_REST_Settings_Options_Controller dependency on WC_REST_Settings_API_Controller.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
b31818e695
|
Remove WC_REST_Settings_Controller dependency on WC_REST_Settings_API_Controller.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
6f36179fe6
|
Rename WC_Rest_Settings_Groups_Controller to WC_Rest_Settings_Controller.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
f56a79c74b
|
Rename WC_Rest_Settings_Controller to WC_Rest_Settings_Options_Controller.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
8b0416c4b2
|
When saving settings, only allow values found in “options” for “select” type fields.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
cf65ff53c5
|
Add test coverage for all WP_Error-returning cases in the Settings API.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
ca15237332
|
Add test coverage for register_legacy_settings().
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
1fc539992c
|
Break “legacy” setting to “new” conversion into it’s own method.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
6c53cfa167
|
Add test for register_legacy_group() and coverage annotations.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
3747505d83
|
Add initial test file for WC_Register_Legacy_Settings, with test for constructor.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
1cde743121
|
Reuse WC Admin Setting’s save_fields() instead of duplicating code for sanitizing saved values.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
832df9ab3e
|
Use WC Admin Settings’s get_option() in REST Settings controller instead of duplicating code.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
586bf5d842
|
Take in options data to be saved as an optional argument, defaulting to $_POST.
This allows for reuse of the options field saving mechanism.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
a53040f186
|
Remove namespace from Settings API unit test file.
This fails builds on PHP 5.2.x.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
fde3318b41
|
Fix unit tests.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
8939af0d0f
|
Add _links to returned settings groups.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
7209369eab
|
Don’t register legacy settings without IDs.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
0b940badeb
|
Handle select options in setting sanitization function.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
49b1c188c7
|
Move bulk settings updating to the Settings controller, following existing batch endpoint patterns.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
c9636bff39
|
Add _links to /settings/<group> and /settings/<group>/<setting> responses.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
0ddb8e777a
|
Move settings group endpoint to Settings controller and only return settings-schema’d items.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
aff1c82de2
|
Add Settings controller getter method for all group settings.
|
2016-07-19 10:41:22 -07:00 |
Jeff Stieler
|
092bfcb196
|
Match parent signature of prepare_item_for_response(), add getter method for settings.
|
2016-07-19 10:41:22 -07:00 |
Claudio Sanches
|
cd01e71c3f
|
Small tweaks to make it follow the REST API standards
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
5cb823f6c6
|
edit_item should be update_item
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
2580c39708
|
Rename update_ functions to edit_item, and get_groups/get_settings to get_item and get_items per feedback. Also move the namespace into each class.
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
170e2a1346
|
Split settings and groups controllers into two separate files.
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
5d0e15fdae
|
Rename classic settings file to legacy settings
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
e814dcc2f4
|
Rename classic -> legacy
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
8c211b87ef
|
Fix how classic groups/settings are registered so that they are always avaiable when calling filters.
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
9f7c769c4f
|
Remove settings api docs, moving to wiki
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
6bb546e11c
|
Wrap up settings api
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
05a2644066
|
Wrap up settings endpoints for updating, finish tests.
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
fa5425109e
|
Refactor down to two concepts - settings groups and settings. Fix up tests, and start working on returning actual settings and their values.
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
f425a3735a
|
Add a test for settings groups, make sure any bad keys/values are filtered out, update docs.
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
785e43a207
|
Add group info to the single locations endpoint & update our docs
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
06e787a26d
|
Misc cleanup.
|
2016-07-19 10:41:22 -07:00 |
Justin Shreve
|
6c2be482ca
|
Add a permissions check to the locations endpoints and fill out the tests for them.
|
2016-07-19 10:41:22 -07:00 |