#5246 closed defect (bug) (fixed)
size_format doesn't work for TB
| Reported by: | nbachiyski | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | size_format has-patch |
| Cc: | Focuses: |
Description
size_format runs the number through int_val, which casts it to int, which is usually only 32 bits. Not enough for terabytes.
Attachments (2)
Change History (5)
#1
@
19 years ago
Simpler patch included - this one just uses doubleval() in place of intval().
Both pass unit tests incidentally - see test_size_format() in http://svn.automattic.com/wordpress-tests/wp-testcase/test_includes_functions.php.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
simpler patch with doubleval()