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/tests/phpunit/tests/media.php

    r37627 r37702  
    274274        $this->assertEquals( '1GB', wp_convert_bytes_to_hr( $gb ) );
    275275        $this->assertEquals( '1MB', wp_convert_bytes_to_hr( $mb ) );
    276         $this->assertEquals( '1kB', wp_convert_bytes_to_hr( $kb ) );
     276        $this->assertEquals( '1KB', wp_convert_bytes_to_hr( $kb ) );
    277277
    278278        $this->assertEquals( '1 TB', size_format( $tb ) );
    279279        $this->assertEquals( '1 GB', size_format( $gb ) );
    280280        $this->assertEquals( '1 MB', size_format( $mb ) );
    281         $this->assertEquals( '1 kB', size_format( $kb ) );
     281        $this->assertEquals( '1 KB', size_format( $kb ) );
    282282
    283283        // now some values around
Note: See TracChangeset for help on using the changeset viewer.