WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #14889, comment 28


Ignore:
Timestamp:
06/08/11 12:59:25 (4 years ago)
Author:
hakre
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14889, comment 28

    initial v1  
    55        ( $bytes = (float) $size ) 
    66                && ( $last = strtolower( substr( $size, -1 ) ) ) 
    7                 && ( $pos = strpos( ' kmg', $last , 1) ) 
     7                && ( $pos = strpos( ' kmg', $last , 1 ) ) 
    88                && $bytes = round( $bytes * pow( 1024, $pos ) ) 
    99                ;