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/deprecated.php

    r37676 r37702  
    33303330    _deprecated_function( __FUNCTION__, '3.6', 'size_format()' );
    33313331
    3332     $units = array( 0 => 'B', 1 => 'kB', 2 => 'MB', 3 => 'GB', 4 => 'TB' );
     3332    $units = array( 0 => 'B', 1 => 'KB', 2 => 'MB', 3 => 'GB', 4 => 'TB' );
    33333333    $log   = log( $bytes, KB_IN_BYTES );
    33343334    $power = (int) $log;
Note: See TracChangeset for help on using the changeset viewer.