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:
AlexeyKhmyrov 2018-10-22 11:29:07 -05:00
parent a58e907994
commit 179d0fdc52
1 changed files with 1 additions and 1 deletions

View File

@ -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' );