Skip to content

Commit

Permalink
Fixed issue where Code Chest overwrote 3rd-party values added via the…
Browse files Browse the repository at this point in the history
… `gform_form_after_open` filter. Credit: [Bas Tolen](https://github.com/bastolen).
  • Loading branch information
bastolen authored and claygriffiths committed Jun 20, 2024
1 parent 2dd7849 commit b1d3a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class-gwiz-gf-code-chest.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@ public function add_custom_css( $form_string, $form ) {
}

if ( ! empty( $custom_css ) ) {
return sprintf( '<style>%s</style>', $custom_css );
return $form_string . sprintf( '<style>%s</style>', $custom_css );
}

return '';
return $form_string;
}

public function is_applicable_form( $form ) {
Expand Down

0 comments on commit b1d3a2b

Please sign in to comment.