Skip to content

Commit

Permalink
Add our closing container if the variable is empty, ensuring we never…
Browse files Browse the repository at this point in the history
… miss that closing tag
  • Loading branch information
dkotter committed Jun 28, 2024
1 parent 00726cf commit e9a2dc7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mailchimp_widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ function mailchimp_sf_signup_form( $args = array() ) {
<?php
if ( ! empty( $after_widget ) ) {
echo wp_kses_post( $after_widget );
} else {
}

if ( empty( $before_widget ) ) {
echo '</div>';
}

return;
}

Expand Down Expand Up @@ -284,7 +287,9 @@ function mailchimp_sf_signup_form( $args = array() ) {
<?php
if ( ! empty( $after_widget ) ) {
echo wp_kses_post( $after_widget );
} else {
}

if ( empty( $before_widget ) ) {
echo '</div>';
}
}
Expand Down

0 comments on commit e9a2dc7

Please sign in to comment.