[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 08:49:37 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 | Resolution:
Keywords: has-patch has-testing-info has- | Focuses:
screenshots dev-feedback close |
-------------------------------------------------+-------------------------
Changes (by swissspidy):
* keywords: has-patch has-testing-info has-screenshots dev-feedback =>
has-patch has-testing-info has-screenshots dev-feedback close
Comment:
Why not just fix the type in your plugin? Core dorsn‘t usually paper over
ddvdlopers‘ issues like that by adding casts everywhere. It‘s your
responsibility to pass the expected type to a function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62474#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list