[wp-trac] [WordPress Trac] #22295: wp_convert_bytes_to_hr : annoying notice if 0 bytes and deprecated or not ?

WordPress Trac noreply at wordpress.org
Sat Oct 27 09:25:22 UTC 2012


#22295: wp_convert_bytes_to_hr : annoying notice if 0 bytes and deprecated or not ?
-----------------------------+--------------------------
 Reporter:  michelwppi       |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Formatting
  Version:  3.4.2            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22295>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list