[wp-trac] [WordPress Trac] #35840: number_format_i18n throws a PHP error if a string is passed
WordPress Trac
noreply at wordpress.org
Tue Feb 16 01:21:10 UTC 2016
#35840: number_format_i18n throws a PHP error if a string is passed
--------------------------+-----------------------------
Reporter: pbearne | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In writing a unit test for number_format_i18n we found it blow up when a
string is passed
{{{
number_format_i18n( 'seven' )
}}}
added a cast to force to a number (0) when a string is passed
included unit test
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35840>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list