Ticket #37037: 37037.patch
File 37037.patch, 3.5 KB (added by , 8 years ago) |
---|
-
wp-includes/deprecated.php
3329 3329 function wp_convert_bytes_to_hr( $bytes ) { 3330 3330 _deprecated_function( __FUNCTION__, '3.6', 'size_format()' ); 3331 3331 3332 $units = array( 0 => 'B', 1 => 'kB', 2 => 'MB', 3 => 'GB', 4 => 'TB' );3332 $units = array( 0 => 'B', 1 => KB', 2 => 'MB', 3 => 'GB', 4 => 'TB' ); 3333 3333 $log = log( $bytes, KB_IN_BYTES ); 3334 3334 $power = (int) $log; 3335 3335 $size = pow( KB_IN_BYTES, $log - $power ); -
wp-includes/functions.php
237 237 /** 238 238 * Convert number of bytes largest unit bytes will fit into. 239 239 * 240 * It is easier to read 1 kB than 1024 bytes and 1 MB than 1048576 bytes. Converts240 * It is easier to read 1 KB than 1024 bytes and 1 MB than 1048576 bytes. Converts 241 241 * number of bytes to human readable number by taking the number of that unit 242 242 * that the bytes will go into it. Supports TB value. 243 243 * … … 259 259 'TB' => TB_IN_BYTES, 260 260 'GB' => GB_IN_BYTES, 261 261 'MB' => MB_IN_BYTES, 262 ' kB' => KB_IN_BYTES,262 'KB' => KB_IN_BYTES, 263 263 'B' => 1, 264 264 ); 265 265 -
wp-includes/ID3/getid3.php
1299 1299 // end of the comments and the end of the file (minus any trailing tags), 1300 1300 // because the page sequence numbers of the pages that the audio data is on 1301 1301 // do not match. Under normal circumstances, where comments are smaller than 1302 // the nominal 4-8 kB page size, then this is not a problem, but if there are1302 // the nominal 4-8KB page size, then this is not a problem, but if there are 1303 1303 // very large comments, the only way around it is to strip off the comment 1304 1304 // tags with vorbiscomment and MD5 that file. 1305 1305 // This procedure must be applied to ALL Ogg files, not just the ones with -
wp-includes/ID3/module.audio-video.riff.php
1693 1693 } 1694 1694 $RIFFchunk[$LISTchunkParent][$chunkname][$thisindex]['data'] = $this->fread($chunksize); 1695 1695 } elseif ($chunksize < 2048) { 1696 // only read data in if smaller than 2 kB1696 // only read data in if smaller than 2KB 1697 1697 $RIFFchunk[$chunkname][$thisindex]['data'] = $this->fread($chunksize); 1698 1698 } else { 1699 1699 $this->fseek($chunksize, SEEK_CUR); -
wp-includes/ID3/module.audio.mp3.php
1372 1372 1373 1373 if ($SynchSeekOffset > $sync_seek_buffer_size) { 1374 1374 // if a synch's not found within the first 128k bytes, then give up 1375 $info['error'][] = 'Could not find valid MPEG audio synch within the first '.round($sync_seek_buffer_size / 1024).' kB';1375 $info['error'][] = 'Could not find valid MPEG audio synch within the first '.round($sync_seek_buffer_size / 1024).'KB'; 1376 1376 if (isset($info['audio']['bitrate'])) { 1377 1377 unset($info['audio']['bitrate']); 1378 1378 }