Skip to content

Commit

Permalink
gw-cache-buster.php: Fixed an issue with Cache Buster plugin causin…
Browse files Browse the repository at this point in the history
…g fatal error.
  • Loading branch information
saifsultanc committed Feb 5, 2025
1 parent d5199e0 commit e529642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gravity-forms/gw-cache-buster.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Plugin URI: https://gravitywiz.com/cache-busting-with-gravity-forms/
* Description: Bypass your website cache when loading a Gravity Forms form.
* Author: Gravity Wiz
* Version: 0.6.3
* Version: 0.6.4
* Author URI: https://gravitywiz.com
*/
class GW_Cache_Buster {
Expand Down Expand Up @@ -68,7 +68,7 @@ public function set_form_styles( $form, $style_settings, $form_theme ) {
// Form styles specifically set to false disables inline form css styles.
$form_styles = false;
} else {
$form_styles = ! empty( $style_settings ) ? json_decode( $style_settings, true ) : array();
$form_styles = is_array( $style_settings ) ? $style_settings : ( ! empty( $style_settings ) ? json_decode( $style_settings, true ) : array() );
}

// Removing theme from styles for consistency. $form['theme'] should be used instead.
Expand Down

0 comments on commit e529642

Please sign in to comment.