[wp-trac] [WordPress Trac] #62474: [ wp-includes/functions.php - number_format_i18n() ] - fallback in case number is not a float
WordPress Trac
noreply at wordpress.org
Tue Nov 19 07:18:31 UTC 2024
#62474: [ wp-includes/functions.php - number_format_i18n() ] - fallback in case
number is not a float
-----------------------------+-----------------------------
Reporter: riccardodicurti | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: minor | Keywords:
Focuses: |
-----------------------------+-----------------------------
Good morning everyone, while working on a project on php 8, I found that a
plugin was passing number to number_format_i18n() that was not a float and
this led to an error.
In my opinion, it would therefore be better to add a check or a cast to
float in order to avoid potential errors.
Thanks in advance.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62474>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list