#22295 closed defect (bug) (duplicate)
wp_convert_bytes_to_hr(): annoying notice if 0 bytes and deprecated or not?
| Reported by: | michelwppi | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Formatting | Version: | 3.4.2 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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.
M.
Change History (3)
#2
in reply to: ↑ 1
@
14 years ago
- Resolution → duplicate
- Status new → closed
- Summary wp_convert_bytes_to_hr : annoying notice if 0 bytes and deprecated or not ? → has_post_format() should accept an array
Replying to SergeyBiryukov:
The patch on #19067 does exactly that. Suggest closing as a duplicate of that ticket, unless we also want to fix the notice in
wp_convert_bytes_to_hr().
+1 - No need to maintain two functions that do nearly the same and the other ticket has supporters.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The patch on #19067 does exactly that. Suggest closing as a duplicate of that ticket, unless we also want to fix the notice in
wp_convert_bytes_to_hr().