Multisite: Use `size_format()` in `display_space_usage()`.
Deleted code is the best code. Fixes #28239. Built from https://develop.svn.wordpress.org/trunk@45579 git-svn-id: http://core.svn.wordpress.org/trunk@45390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
abc0f7dd32
commit
072682b1ed
|
@ -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
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-45578';
|
||||
$wp_version = '5.3-alpha-45579';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue