[wp-trac] [WordPress Trac] #52471: Site Health Upload-related INI values could use consistent formatting

WordPress Trac noreply at wordpress.org
Mon Feb 8 16:32:09 UTC 2021


#52471: Site Health Upload-related INI values could use consistent formatting
-------------------------+-----------------------------
 Reporter:  ayeshrajans  |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Site Health  |    Version:
 Severity:  normal       |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 In #50038, we added a new section to Site Health -> Info section to show
 upload-related limits.

 Currently, it does not show the information in a consistent way. It shows
 values like `128M`, `2G`, and `128 MB`.

 I would like to suggest to tweak this to use `size_format` function to
 properly format them. We already use `wp_convert_hr_to_bytes` function to
 parse INI-style values (`128M`, `2G`, `2M`, etc); they just need some
 formatting.

 Despite being a smaller diff, I suppose 5.7 is too early to target this,
 assuming this gets accepted of course.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52471>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list