WordPress.org

Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #14889, comment 27


Ignore:
Timestamp:
06/08/2011 01:03:31 PM (7 years ago)
Author:
hakre
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14889, comment 27

    v3 v4  
    66        $last = strtolower( substr( $size, -1 ) );
    77        $pos = strpos( ' kmg', $last , 1 );
    8         if ( $pos ) $bytes *= pow( 1024, $pos);
     8        if ( $pos ) $bytes *= pow( 1024, $pos );
    99        return round( $bytes );
    1010}