WordPress.org

Make WordPress Core

Changeset 35951


Ignore:
Timestamp:
12/15/2015 09:34:15 PM (4 years ago)
Author:
SergeyBiryukov
Message:

I18N: After [35884], remove html_entity_decode() for the thousands separator in WP_Locale::init(), use the   entity directly.

We can't get_option( 'blog_charset' ) here, because the database may not be available.

Fixes #10373.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/locale.php

    r35884 r35951  
    192192        if ( version_compare( PHP_VERSION, '5.4', '>=' ) ) {
    193193            // Replace space with a non-breaking space to avoid wrapping.
    194             $non_breaking_space = html_entity_decode( ' ', ENT_QUOTES, get_option( 'blog_charset' ) );
    195             $thousands_sep = str_replace( ' ', $non_breaking_space, $thousands_sep );
     194            $thousands_sep = str_replace( ' ', ' ', $thousands_sep );
    196195        } else {
    197196            // PHP < 5.4.0 does not support multiple bytes in thousands separator.
Note: See TracChangeset for help on using the changeset viewer.