diff --git a/CHANGELOG.md b/CHANGELOG.md index fb8e53d2..032efd7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Update WordPress version in Travis tests to our current install version 4.9.7 - Update Unit Tests for `test_responsive_is_bu_domain_true()` to work with single or multi-site installations. +- Update deprecated Gravity Form call `GFForms::setup()` ## 2.1.9 diff --git a/bu-site-init.php b/bu-site-init.php index 9e517d04..531e443e 100755 --- a/bu-site-init.php +++ b/bu-site-init.php @@ -168,7 +168,8 @@ function responsive_initialize_site( $site, $site_id, $admin_id, $domain, $path, error_log( sprintf( '[%s] Creating contact form...', __FUNCTION__ ) ); // Install GF tables if they don't already exist. - GFForms::setup(); + $current_gf_version = get_option( 'rg_form_version' ); + gf_upgrade()->upgrade( $current_gf_version, true ); // Import template form. $contact_form = json_decode( file_get_contents( get_template_directory() . '/inc/contact-form.json' ), true );