Skip to content

Commit 62886b4

Browse files
committed
—human-readable should not allow plain numeric repsonses
1 parent 26d20f8 commit 62886b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DB_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ public function size( $args, $assoc_args ) {
885885
}
886886
}
887887

888-
if ( ! empty( $size_format) && ! $tables && ! $format ) {
888+
if ( ! empty( $size_format) && ! $tables && ! $format && ! $human_readable ) {
889889
WP_CLI::Line( filter_var( $rows[0]['Size'], FILTER_SANITIZE_NUMBER_INT ) );
890890
} else {
891891
// Display the rows.

0 commit comments

Comments
 (0)