WordPress.org

Make WordPress Core

Changeset 11407


Ignore:
Timestamp:
05/20/09 16:08:35 (5 years ago)
Author:
ryan
Message:

Add number_format_i18n filter. Props kambiz.k. fixes #7753

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r11383 r11407  
    141141    $decimals = ( is_null( $decimals ) ) ? $wp_locale->number_format['decimals'] : intval( $decimals ); 
    142142 
    143     return number_format( $number, $decimals, $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] ); 
     143    $num = number_format( $number, $decimals, $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] ); 
     144   
     145    // let the user translate digits from latin to localized language 
     146    return apply_filters( 'number_format_i18n', $num ); 
    144147} 
    145148 
Note: See TracChangeset for help on using the changeset viewer.