From 292dc8636bc6b26071c73841650abc5fd58bc5dd Mon Sep 17 00:00:00 2001 From: Alana Martin Date: Thu, 25 Oct 2018 13:47:25 -0400 Subject: [PATCH 1/2] fix deprecated GF call --- bu-site-init.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); From d1abbba2a2c304fc5b148f8d0c337d854ccc18d9 Mon Sep 17 00:00:00 2001 From: Alana Martin Date: Tue, 6 Nov 2018 15:12:32 -0500 Subject: [PATCH 2/2] update change log --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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