Skip to content

Commit

Permalink
[INT-688_WORDPRESS_INTEGRATION_MISSING_FOR_PARAMETER] extra spaces re…
Browse files Browse the repository at this point in the history
…moved
  • Loading branch information
PolepalliGayathri committed Feb 23, 2024
1 parent e72a366 commit 5228ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/widget.subscribe.display.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
echo '<div class="checkbox">';
echo '<label for="custom_' . esc_attr( $name_stripped ) . '">' . esc_html( $customfields[ $field_key ]['sailthru_customfield_label'] ) . '</label>';

foreach ( $items as $item ) {
foreach ( $items as $item ) {

if ( ! empty( $item ) ) {
$vals = explode( ':', $item );
Expand All @@ -200,7 +200,7 @@



echo 'type="checkbox" name="custom_' . esc_attr( $name_stripped ) . (count( $items) > 1 ? '[]' : '') . '" value="' . esc_attr( $vals[1] ) . '" ' . ( sailthru_field_class( $customfields[ $field_key ]['sailthru_customfield_class'], $customfields[ $field_key ]['sailthru_customfield_type'] ) ) . ' ' . esc_attr( sailthru_attributes( $attributes ) ) . '> ' . esc_html( $vals[0] ) . '';
echo 'type="checkbox" name="custom_' . esc_attr( $name_stripped ) . (count( $items) > 1 ? '[]' : '') . '" value="' . esc_attr( $vals[1] ) . '" ' . ( sailthru_field_class( $customfields[ $field_key ]['sailthru_customfield_class'], $customfields[ $field_key ]['sailthru_customfield_type'] ) ) . ' ' . esc_attr( sailthru_attributes( $attributes ) ) . '> ' . esc_html( $vals[0] ) . '';
}
}
echo '</div>';
Expand Down

0 comments on commit 5228ccc

Please sign in to comment.