WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen

This commit is contained in:
Aristeides Stathopoulos 2016-08-27 07:35:04 +03:00
parent dcd5495af9
commit 2101dae5a0
2 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@ function wc_set_term_order( $term_id, $index, $taxonomy, $recursive = false ) {
update_woocommerce_term_meta( $term_id, $meta_name, $index );
if( ! $recursive ) return $index;
if ( ! $recursive ) return $index;
$children = get_terms($taxonomy, "parent=$term_id&menu_order=ASC&hide_empty=0");

View File

@ -38,7 +38,7 @@ if ( 'no' === get_option( 'woocommerce_enable_shipping_calc' ) || ! WC()->cart->
<select name="calc_shipping_country" id="calc_shipping_country" class="country_to_state" rel="calc_shipping_state">
<option value=""><?php _e( 'Select a country&hellip;', 'woocommerce' ); ?></option>
<?php
foreach( WC()->countries->get_shipping_countries() as $key => $value )
foreach ( WC()->countries->get_shipping_countries() as $key => $value )
echo '<option value="' . esc_attr( $key ) . '"' . selected( WC()->customer->get_shipping_country(), esc_attr( $key ), false ) . '>' . esc_html( $value ) . '</option>';
?>
</select>