Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions classes/models/FrmMigrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public function upgrade() {
if ( false === get_option( 'frm_first_activation' ) ) {
update_option( 'frm_first_activation', time(), false );
}

$this->update_settings_for_new_install();
}
}//end if

Expand All @@ -69,6 +71,18 @@ public function upgrade() {
}
}

/**
* Updates some settings for new installs.
*
* @since x.x
*/
private function update_settings_for_new_install() {
$settings = FrmAppHelper::get_settings();

$settings->denylist_check = 1;
$settings->store();
}

/**
* If we fail to create the database tables, add an inbox notice.
* This informs the user that they need to correct the issue and try again.
Expand Down