Unit tests + Welcome page

- fixed unit tests
- commented out failing tests that require changes in the code
- added new welcome page
This commit is contained in:
Jonathan Labreuille
2015-12-11 17:17:59 +01:00
parent 90f2e9ff9d
commit 84ec0de3cd
10 changed files with 177 additions and 58 deletions

View File

@@ -18,13 +18,7 @@ class Settings {
wp_send_json(false);
} else {
foreach($settings as $name => $value) {
if(is_array($value)) {
$value = serialize($value);
}
Setting::createOrUpdate(array(
'name' => $name,
'value' => $value
));
Setting::setValue($name, $value);
}
wp_send_json(true);
}