parent
32b6e05eb1
commit
47a74f96cd
|
@ -63,7 +63,7 @@ class WC_Product_Cat_Dropdown_Walker extends Walker {
|
|||
|
||||
$output .= '>';
|
||||
|
||||
$output .= $pad . __( $cat_name, 'woocommerce' );
|
||||
$output .= $pad . _x( $cat_name, 'product category name', 'woocommerce' );
|
||||
|
||||
if ( ! empty( $args['show_count'] ) )
|
||||
$output .= ' (' . $cat->count . ')';
|
||||
|
|
|
@ -96,7 +96,7 @@ class WC_Product_Cat_List_Walker extends Walker {
|
|||
$output .= ' current-cat-parent';
|
||||
}
|
||||
|
||||
$output .= '"><a href="' . get_term_link( (int) $cat->term_id, $this->tree_type ) . '">' . __( $cat->name, 'woocommerce' ) . '</a>';
|
||||
$output .= '"><a href="' . get_term_link( (int) $cat->term_id, $this->tree_type ) . '">' . _x( $cat->name, 'product category name', 'woocommerce' ) . '</a>';
|
||||
|
||||
if ( $args['show_count'] ) {
|
||||
$output .= ' <span class="count">(' . $cat->count . ')</span>';
|
||||
|
|
|
@ -1764,7 +1764,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) {
|
|||
. '<option value="">'.__( 'Select a country…', 'woocommerce' ) .'</option>';
|
||||
|
||||
foreach ( $countries as $ckey => $cvalue ) {
|
||||
$field .= '<option value="' . esc_attr( $ckey ) . '" '. selected( $value, $ckey, false ) . '>'.__( $cvalue, 'woocommerce' ) .'</option>';
|
||||
$field .= '<option value="' . esc_attr( $ckey ) . '" '. selected( $value, $ckey, false ) . '>'. __( $cvalue, 'woocommerce' ) .'</option>';
|
||||
}
|
||||
|
||||
$field .= '</select>';
|
||||
|
|
Loading…
Reference in New Issue