From be979a486e802ed5f66bb5f6e6d2e37b067cf0cf 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 391e0c5..67da49a 100644 --- a/class-gwiz-gf-code-chest.php +++ b/class-gwiz-gf-code-chest.php @@ -268,6 +268,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.