Skip to content

Commit

Permalink
Fixed issue with gform_post_save_feed_settings hook callback that p…
Browse files Browse the repository at this point in the history
…otentially breaks other plugins.
  • Loading branch information
veryspry committed Jun 10, 2024
1 parent b5adfa2 commit 077b437
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions class-gwiz-gf-code-chest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 077b437

Please sign in to comment.