From 077b43790bdf68e9e20f785ee7c073647b623caf Mon Sep 17 00:00:00 2001 From: veryspry Date: Mon, 10 Jun 2024 15:45:43 +0200 Subject: [PATCH] Fixed issue with `gform_post_save_feed_settings` hook callback that potentially breaks other plugins. --- class-gwiz-gf-code-chest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/class-gwiz-gf-code-chest.php b/class-gwiz-gf-code-chest.php index 32ffd99..53106ab 100644 --- a/class-gwiz-gf-code-chest.php +++ b/class-gwiz-gf-code-chest.php @@ -289,6 +289,10 @@ public function noconflict_styles( $scripts = array() ) { } public function save_code_chest_settings( $feed_id, $form_id, $settings, $feed_addon_instance ) { + if ( ! ( $feed_addon_instance instanceof GWiz_GF_Code_Chest ) ) { + return; + } + /** * Note that this must be handled manually as we (almost) completelty override the * settings form markup which apparently prevents GF from saving the settings.