WordPress.org

Make WordPress Core

Ticket #19067: 19067.function.patch

File 19067.function.patch, 449 bytes (added by soulseekah, 14 months ago)
  • wp-includes/deprecated.php

     
    33813381        $log   = log( $bytes, 1024 ); 
    33823382        $power = (int) $log; 
    33833383        $size  = pow( 1024, $log - $power ); 
    3384         return $size . $units[$power]; 
     3384        $unit = array_key_exists( $power, $units ) ? $units[ $power ] : $units[0]; 
     3385        return $size . $unit; 
    33853386}