WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/14/2016 09:40:02 PM (5 years ago)
Author:
SergeyBiryukov
Message:

In size_format() and wp_convert_bytes_to_hr(), replace kB with KB for consistency with other units.

Props Presskopp, dashaluna.
Fixes #37037.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r37689 r37702  
    238238 * Convert number of bytes largest unit bytes will fit into.
    239239 *
    240  * It is easier to read 1 kB than 1024 bytes and 1 MB than 1048576 bytes. Converts
     240 * It is easier to read 1 KB than 1024 bytes and 1 MB than 1048576 bytes. Converts
    241241 * number of bytes to human readable number by taking the number of that unit
    242242 * that the bytes will go into it. Supports TB value.
     
    260260        'GB' => GB_IN_BYTES,
    261261        'MB' => MB_IN_BYTES,
    262         'kB' => KB_IN_BYTES,
     262        'KB' => KB_IN_BYTES,
    263263        'B'  => 1,
    264264    );
Note: See TracChangeset for help on using the changeset viewer.