Changeset 35092 for trunk/src/wp-includes/functions.php
- Timestamp:
- 10/13/2015 12:29:18 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r34985 r35092 172 172 function number_format_i18n( $number, $decimals = 0 ) { 173 173 global $wp_locale; 174 $formatted = number_format( $number, absint( $decimals ), $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] ); 174 175 if ( isset( $wp_locale ) ) { 176 $formatted = number_format( $number, absint( $decimals ), $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] ); 177 } else { 178 $formatted = number_format( $number, absint( $decimals ) ); 179 } 175 180 176 181 /**
Note: See TracChangeset
for help on using the changeset viewer.