[wp-trac] [WordPress Trac] #47454: BC Math isn't used in WordPress core
WordPress Trac
noreply at wordpress.org
Wed Jun 5 02:23:52 UTC 2019
#47454: BC Math isn't used in WordPress core
---------------------------------------------------+---------------------
Reporter: bronsonquick | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.3
Component: Administration | Version: 5.2
Severity: normal | Resolution:
Keywords: has-patch site-health has-screenshots | Focuses:
---------------------------------------------------+---------------------
Comment (by galbaras):
Replying to [comment:19 Clorith]:
> ... but for something as commonplace as this, we should be providing the
recommendations on behalf of what's best for the users.
The difficulty, again, is in determining just how "commonplace" something
is.
In this particular case, the example given by @jrf is especially crafted
to demonstrate a potential problem of PHP doing weird things with
deliberate type casting (without it, the answer is correct and can be
further adjusted with round() or floor()). Hopefully, the WordPress Core
(and plugin/theme) developers do the latter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47454#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list