Skip to content

Commit

Permalink
Merge pull request #109 from mailchimp/bug/required-field-always-show…
Browse files Browse the repository at this point in the history
…s-not-required-in-wp-admin

Bug/required field does not display as required in the WP Mailchimp settings page
  • Loading branch information
vikrampm1 authored Jan 28, 2025
2 parents 6099727 + 0e26284 commit 2e234cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/setup_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function ( $ele ) {
<tr valign="top">
<td><?php echo esc_html( $mv_var['name'] ); ?></td>
<td><?php echo esc_html( $mv_var['tag'] ); ?></td>
<td><?php echo esc_html( ( 1 === $mv_var['required'] ) ? 'Y' : 'N' ); ?></td>
<td><?php echo esc_html( ( 1 === intval( $mv_var['required'] ) ) ? 'Y' : 'N' ); ?></td>
<td>
<?php
if ( ! $mv_var['required'] && $mv_var['public'] ) {
Expand Down

0 comments on commit 2e234cf

Please sign in to comment.