Skip to content

Commit

Permalink
Fixing tax state text input for #3613
Browse files Browse the repository at this point in the history
  • Loading branch information
cklosowski committed Jul 13, 2015
1 parent 6650ae3 commit 7eb9929
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions includes/admin/settings/register-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,7 @@ function edd_tax_rates_callback($args) {
'show_option_none' => false,
'class' => 'edd-select edd-tax-country',
'chosen' => false,
'placeholder' => __( 'Choose a country', 'edd' )
'placeholder' => __( 'Choose a country', 'edd' )
) );
?>
</td>
Expand All @@ -1574,11 +1574,12 @@ function edd_tax_rates_callback($args) {
'show_option_all' => false,
'show_option_none' => false,
'chosen' => false,
'placeholder' => __( 'Choose a state', 'edd' )
'placeholder' => __( 'Choose a state', 'edd' )
) );
} else {
echo EDD()->html->text( array(
'name' => 'tax_rates[' . $key . '][state]', $rate['state']
'name' => 'tax_rates[' . $key . '][state]', $rate['state'],
'value' => ! empty( $rate['state'] ) ? $rate['state'] : '',
) );
}
?>
Expand All @@ -1602,12 +1603,12 @@ function edd_tax_rates_callback($args) {
'show_option_none' => false,
'class' => 'edd-select edd-tax-country',
'chosen' => false,
'placeholder' => __( 'Choose a country', 'edd' )
'placeholder' => __( 'Choose a country', 'edd' )
) ); ?>
</td>
<td class="edd_tax_state">
<?php echo EDD()->html->text( array(
'name' => 'tax_rates[0][state]'
'name' => 'tax_rates[0][state]'
) ); ?>
</td>
<td class="edd_tax_global">
Expand Down

0 comments on commit 7eb9929

Please sign in to comment.