Multisite: Use size_format()
in display_space_usage()
.
Deleted code is the best code. Fixes #28239. git-svn-id: https://develop.svn.wordpress.org/trunk@45579 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
78e096fe98
commit
d2c4198623
@ -249,15 +249,7 @@ function display_space_usage() {
|
||||
|
||||
$percent_used = ( $space_used / $space_allowed ) * 100;
|
||||
|
||||
if ( $space_allowed > 1000 ) {
|
||||
$space = number_format( $space_allowed / KB_IN_BYTES );
|
||||
/* translators: Gigabytes */
|
||||
$space .= __( 'GB' );
|
||||
} else {
|
||||
$space = number_format( $space_allowed );
|
||||
/* translators: Megabytes */
|
||||
$space .= __( 'MB' );
|
||||
}
|
||||
$space = size_format( $space_allowed * MB_IN_BYTES );
|
||||
?>
|
||||
<strong>
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user