- Updates settings to use task scheduler method names from the newly

introduced config class
This commit is contained in:
Vlad
2016-07-19 09:00:35 -04:00
parent 6dd3c6acda
commit 5ed0a5819c
3 changed files with 10 additions and 3 deletions

View File

@@ -74,6 +74,13 @@ class Populator {
private function createDefaultSettings() {
$current_user = wp_get_current_user();
if(!Setting::getValue('task_scheduler')) {
// disable task scheduler (cron) be default
Setting::setValue('task_scheduler', array(
'method' => TaskScheduler::METHOD_WORDPRESS
));
}
// default sender info based on current user
$sender = array(
'name' => $current_user->display_name,