WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen
This commit is contained in:
parent
dcd5495af9
commit
2101dae5a0
|
@ -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");
|
||||
|
||||
|
|
|
@ -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…', '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>
|
||||
|
|
Loading…
Reference in New Issue