$tax_code was url encoded , so decode it.

I can't read tax code at this box, if used Japanese in tax code. I want to read it in Japanese, so decode here.
This commit is contained in:
Shohei Tanaka 2014-02-08 15:50:03 +09:00
parent 21331cbe9c
commit f03dde7868
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
<optgroup label="<?php _e( 'Tax Rate', 'woocommerce' ); ?>">
<option value=""><?php _e( 'N/A', 'woocommerce' ); ?></option>
<?php foreach( $tax_codes as $tax_id => $tax_code ) : ?>
<option value="<?php echo $tax_id; ?>" <?php selected( $tax_id, isset( $item['rate_id'] ) ? $item['rate_id'] : '' ); ?>><?php echo esc_html( $tax_code ); ?></option>
<option value="<?php echo $tax_id; ?>" <?php selected( $tax_id, isset( $item['rate_id'] ) ? $item['rate_id'] : '' ); ?>><?php echo esc_html( urldecode($tax_code) ); ?></option>
<?php endforeach; ?>
</optgroup>
</select>
@ -23,4 +23,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
</p>
<a href="#" class="delete_total_row">&times;</a>
<div class="clear"></div>
</div>
</div>