[wp-trac] [WordPress Trac] #41366: WordPress makes uses of decimal prefix and uses binary multiplicator for constant memory size value
WordPress Trac
noreply at wordpress.org
Wed Jul 19 10:40:38 UTC 2017
#41366: WordPress makes uses of decimal prefix and uses binary multiplicator for
constant memory size value
-------------------------+-----------------------------
Reporter: sebm78 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: ui |
-------------------------+-----------------------------
defined here: wp-includes/default-constants.php line 25-28
constants in: define('{decimal_prefix}_IN_BYTES' , 1024 *
{decimal_prefix}_IN_BYTES );
should be: define('{binary_prefix}_IN_BYTES' , 1024 *
{binary_prefix}_IN_BYTES );
or should be: define('{decimal_prefix}_IN_BYTES' , 1000*
{decimal_prefix}_IN_BYTES );
where {decimal_prefix} is one of: ,K, M, G, T and {binary_prefix} is one
of: ,Ki, Mi, Gi, Ti.
See https://en.wikipedia.org/wiki/Binary_prefix.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41366>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list