[wp-trac] [WordPress Trac] #28239: Unify size format display

WordPress Trac noreply at wordpress.org
Sun Jun 29 10:54:13 UTC 2014


#28239: Unify size format display
-------------------------+------------------
 Reporter:  johnbillion  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.0
Component:  Formatting   |     Version:  2.3
 Severity:  minor        |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+------------------

Comment (by jacklenox):

 One problem here is that `get_space_allowed()` (used by
 `display_space_usage()`) retrieves the space allowed in megabytes, whereas
 `size_format()` converts a given number of bytes.

 So in order to get this to work, we need to multiply the given figure by 1
 million (roughly), which feels a bit hackish.

 Or we could change the way `get_space_allowed()` works, but that's tied
 into the mu blog option: `blog_upload_space`, which is also in megabytes.

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


More information about the wp-trac mailing list