Skip to content

Commit c2d5478

Browse files
authored
Merge pull request #26 from wp-cli/size_format_uppercase
Uppercase WP size_format() for pre 4.6 compat.
2 parents cf0133f + 46f874a commit c2d5478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DB_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ public function size( $args, $assoc_args ) {
600600
// Add the table size to the list.
601601
$rows[] = array(
602602
'Name' => $table_name,
603-
'Size' => size_format( $table_bytes ),
603+
'Size' => strtoupper( size_format( $table_bytes ) ),
604604
);
605605
}
606606
} else {
@@ -615,7 +615,7 @@ public function size( $args, $assoc_args ) {
615615
// Add the database size to the list.
616616
$rows[] = array(
617617
'Name' => DB_NAME,
618-
'Size' => size_format( $db_bytes ),
618+
'Size' => strtoupper( size_format( $db_bytes ) ),
619619
);
620620
}
621621

0 commit comments

Comments
 (0)