[wp-trac] [WordPress Trac] #37037: size_format() incorrectly displays `kB` with small `k`

WordPress Trac noreply at wordpress.org
Mon Jun 6 14:58:09 UTC 2016


#37037: size_format() incorrectly displays `kB` with small `k`
----------------------------------------+------------------------------
 Reporter:  dashaluna                   |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  General                     |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+------------------------------
Changes (by swissspidy):

 * keywords:   => needs-patch good-first-bug


Comment:

 … because 1 kB means 1000 bytes, whereas 1 KB = 1 KiB = 1024 bytes.

 `size_format()` assumes that 1024 bytes = 1 ''k''B, so yeah, that sounds
 wrong.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37037#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list