WordPress.org

Make WordPress Core

Ticket #35893: 35893.diff

File 35893.diff, 845 bytes (added by salcode, 4 years ago)
  • src/wp-includes/functions.php

    diff --git src/wp-includes/functions.php src/wp-includes/functions.php
    index f46bd2c..01e3084 100644
    function wp_maybe_decline_date( $date ) { 
    205205}
    206206
    207207/**
    208  * Convert integer number to format based on the locale.
     208 * Convert float number to format based on the locale.
    209209 *
    210210 * @since 2.3.0
    211211 *
    212212 * @global WP_Locale $wp_locale
    213213 *
    214  * @param int $number   The number to convert based on locale.
    215  * @param int $decimals Optional. Precision of the number of decimal places. Default 0.
     214 * @param float $number   The number to convert based on locale.
     215 * @param int   $decimals Optional. Precision of the number of decimal places. Default 0.
    216216 * @return string Converted number in string format.
    217217 */
    218218function number_format_i18n( $number, $decimals = 0 ) {