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

WordPress Trac noreply at wordpress.org
Tue Jun 7 15:31:44 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:
----------------------------------------+------------------------------

Comment (by Presskopp):

 IMHO we could just keep kB, even it maybe painful for your eyes,
 @dashaluna :)
 See Table here: [https://en.wikipedia.org/wiki/Kilobyte]

 Just for the record, we see it used here:

 \wp-includes\ID3\module.audio.mp3.php, L.1375
 {{{
 round($sync_seek_buffer_size / 1024).'kB';
 }}}

 and as a comment here:

 \wp-includes\ID3\module.audio-video.riff.php, L.1695


 {{{
                 } elseif ($chunksize < 2048) {
                         // only read data in if smaller than 2kB
 }}}

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


More information about the wp-trac mailing list