- Updates settings to use task scheduler method names from the newly
introduced config class
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user