Revert price formatting changes which break in RTL

This commit is contained in:
Mike Jolley 2018-01-12 14:16:18 +00:00
parent b2129b0c44
commit 7a7995f697
2 changed files with 7 additions and 7 deletions

View File

@ -206,10 +206,10 @@ class WC_Settings_General extends WC_Settings_Page {
'default' => 'left',
'type' => 'select',
'options' => array(
'left' => __( 'Left', 'woocommerce' ) . ' (' . get_woocommerce_currency_symbol() . '‎99.99)',
'right' => __( 'Right', 'woocommerce' ) . ' (99.99' . get_woocommerce_currency_symbol() . '‏)',
'left_space' => __( 'Left with space', 'woocommerce' ) . ' (' . get_woocommerce_currency_symbol() . '‎ 99.99)',
'right_space' => __( 'Right with space', 'woocommerce' ) . ' (99.99 ' . get_woocommerce_currency_symbol() . '‏)',
'left' => __( 'Left', 'woocommerce' ),
'right' => __( 'Right', 'woocommerce' ),
'left_space' => __( 'Left with space', 'woocommerce' ),
'right_space' => __( 'Right with space', 'woocommerce' ),
),
'desc_tip' => true,
),

View File

@ -455,16 +455,16 @@ function get_woocommerce_price_format() {
switch ( $currency_pos ) {
case 'left' :
$format = '%1$s‎%2$s';
$format = '%1$s%2$s';
break;
case 'right' :
$format = '%2$s%1$s‏';
break;
case 'left_space' :
$format = '%1$s‎ %2$s';
$format = '%1$s %2$s';
break;
case 'right_space' :
$format = '%2$s %1$s‏';
$format = '%2$s %1$s';
break;
}