Commit 8bec0dd7 authored by KR Moorhouse's avatar KR Moorhouse Committed by Kenny Hall

Added check to set our data as clean if this is a brand new installation of Ninja Forms. (#3595)

parent e3f9220a
......@@ -205,6 +205,11 @@ if( get_option( 'ninja_forms_load_deprecated', FALSE ) && ! ( isset( $_POST[ 'nf
}
$saved_version = get_option( 'ninja_forms_version' );
// If this is a fresh install... (The version has never been saved.)
if ( ! $saved_version ) {
// Assume we have clean data.
update_option( 'ninja_forms_data_is_clean', 'true' );
}
// If we have a recorded version...
// AND that version is less than our current version...
if ( $saved_version && version_compare( $saved_version, self::VERSION, '<' ) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment