wp_convert_bytes_to_hr(): annoying notice if 0 bytes and deprecated or not?
|Reported by:||michelwppi||Owned by:|
wp_convert_bytes_to_hr used in wp_import_upload_form show an annoying notice when param $bytes has zero value. (unwanted indice) .
After searching in the tracs before publishing this report, it was announced in #19067 (9 month ago) that wp_convert_bytes_to_hr will be soon deprecated.
Is it possible to do that and replace this function by size_format() in wp_import_upload_form() of template.php because size_format() shows a good behavior with zero bytes...
Test also in 3.5 beta 2 with same unwanted notice.
Change History (3)
comment:2 in reply to: ↑ 1 F J Kaiser — 11 months ago
- Resolution set to duplicate
- Status changed from new to closed
- Summary changed from wp_convert_bytes_to_hr : annoying notice if 0 bytes and deprecated or not ? to has_post_format() should accept an array