Changeset 46214 for trunk/src/wp-includes/class-wp-locale.php
- Timestamp:
- 09/20/2019 10:01:36 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-locale.php
r45932 r46214 200 200 $thousands_sep = __( 'number_format_thousands_sep' ); 201 201 202 if ( version_compare( PHP_VERSION, '5.4', '>=' ) ) { 203 // Replace space with a non-breaking space to avoid wrapping. 204 $thousands_sep = str_replace( ' ', ' ', $thousands_sep ); 205 } else { 206 // PHP < 5.4.0 does not support multiple bytes in thousands separator. 207 $thousands_sep = str_replace( array( ' ', ' ' ), ' ', $thousands_sep ); 208 } 202 // Replace space with a non-breaking space to avoid wrapping. 203 $thousands_sep = str_replace( ' ', ' ', $thousands_sep ); 209 204 210 205 $this->number_format['thousands_sep'] = ( 'number_format_thousands_sep' === $thousands_sep ) ? ',' : $thousands_sep;
Note: See TracChangeset
for help on using the changeset viewer.