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
spivurno authored Jun 7, 2024
2 parents 2dd7849 + 6776c41 commit 8944594
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 8944594

Please sign in to comment.