[wp-trac] [WordPress Trac] #30908: Remove tailing (white)space from size_format()

WordPress Trac noreply at wordpress.org
Mon Jan 5 13:12:08 UTC 2015


#30908: Remove tailing (white)space from size_format()
--------------------------+---------------------
 Reporter:  tillkruess    |       Owner:  pento
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.2
Component:  General       |     Version:  2.5
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------
Changes (by pento):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31052"]:
 {{{
 #!CommitTicketReference repository="" revision="31052"
 `size_format()` incorrectly included a trailing space for `B` values: less
 than 1024 bytes.

 Also add a unit test to check for this, so we don't do it again.

 Fixes #30908.

 Props tillkruess.
 }}}

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


More information about the wp-trac mailing list