Changeset 23440 for trunk/wp-includes/deprecated.php
- Timestamp:
- 02/16/2013 03:59:37 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/deprecated.php
r23439 r23440 3378 3378 function wp_convert_bytes_to_hr( $bytes ) { 3379 3379 _deprecated_function( __FUNCTION__, '3.6', 'size_format()' ); 3380 return size_format( $bytes ); 3381 } 3380 $units = array( 0 => 'B', 1 => 'kB', 2 => 'MB', 3 => 'GB' ); 3381 $log = log( $bytes, 1024 ); 3382 $power = (int) $log; 3383 $size = pow( 1024, $log - $power ); 3384 return $size . $units[$power]; 3385 }
Note: See TracChangeset
for help on using the changeset viewer.