Issue #21406 Dimensions in RTL Languages are displayed incorrectly on single product pages.
Using '×' instead of 'x' in string '10 x 20 x 30 cm'
This commit is contained in:
parent
a58e907994
commit
179d0fdc52
|
@ -1232,7 +1232,7 @@ function wc_format_weight( $weight ) {
|
|||
* @return string
|
||||
*/
|
||||
function wc_format_dimensions( $dimensions ) {
|
||||
$dimension_string = implode( ' x ', array_filter( array_map( 'wc_format_localized_decimal', $dimensions ) ) );
|
||||
$dimension_string = implode( ' × ', array_filter( array_map( 'wc_format_localized_decimal', $dimensions ) ) );
|
||||
|
||||
if ( ! empty( $dimension_string ) ) {
|
||||
$dimension_string .= ' ' . get_option( 'woocommerce_dimension_unit' );
|
||||
|
|
Loading…
Reference in New Issue