From fc486d8e46340dbf6b85577e58a43b7cf6fce904 Mon Sep 17 00:00:00 2001 From: barthc Date: Thu, 14 Nov 2024 19:45:20 +0100 Subject: [PATCH] `gw-cache-buster.php`: Fixed fatal error from `get_default_theme` function. --- gravity-forms/gw-cache-buster.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity-forms/gw-cache-buster.php b/gravity-forms/gw-cache-buster.php index ba5496e2e..c3193c699 100644 --- a/gravity-forms/gw-cache-buster.php +++ b/gravity-forms/gw-cache-buster.php @@ -72,7 +72,7 @@ public function set_form_styles( $form, $style_settings, $form_theme ) { unset( $form_styles['theme'] ); } $form['styles'] = GFFormDisplay::get_form_styles( $form_styles ); - $form['theme'] = ! empty( $form_theme ) ? $form_theme : GFForms::get_default_theme(); + $form['theme'] = $form_theme; return $form; }