Skip to content

Commit 2e234cf

Browse files
authored
Merge pull request #109 from mailchimp/bug/required-field-always-shows-not-required-in-wp-admin
Bug/required field does not display as required in the WP Mailchimp settings page
2 parents 6099727 + 0e26284 commit 2e234cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/setup_page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function ( $ele ) {
300300
<tr valign="top">
301301
<td><?php echo esc_html( $mv_var['name'] ); ?></td>
302302
<td><?php echo esc_html( $mv_var['tag'] ); ?></td>
303-
<td><?php echo esc_html( ( 1 === $mv_var['required'] ) ? 'Y' : 'N' ); ?></td>
303+
<td><?php echo esc_html( ( 1 === intval( $mv_var['required'] ) ) ? 'Y' : 'N' ); ?></td>
304304
<td>
305305
<?php
306306
if ( ! $mv_var['required'] && $mv_var['public'] ) {

0 commit comments

Comments
 (0)