- Updates the name of the setting const

This commit is contained in:
Vlad
2016-07-22 08:48:19 -04:00
parent 63bd093f35
commit 5558ebad45
3 changed files with 7 additions and 7 deletions

View File

@ -75,9 +75,9 @@ class Populator {
private function createDefaultSettings() {
$current_user = wp_get_current_user();
if(!Setting::getValue(CronTrigger::SETTING_VALUE)) {
if(!Setting::getValue(CronTrigger::SETTING_NAME)) {
// disable task scheduler (cron) be default
Setting::setValue(CronTrigger::SETTING_VALUE, array(
Setting::setValue(CronTrigger::SETTING_NAME, array(
'method' => CronTrigger::METHOD_WORDPRESS
));
}