Make WordPress Core

Ticket #37037: 37037.patch

File 37037.patch, 3.5 KB (added by Presskopp, 8 years ago)

kb => KB, that's all

  • wp-includes/deprecated.php

     
    33293329function wp_convert_bytes_to_hr( $bytes ) {
    33303330        _deprecated_function( __FUNCTION__, '3.6', 'size_format()' );
    33313331
    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' );
    33333333        $log   = log( $bytes, KB_IN_BYTES );
    33343334        $power = (int) $log;
    33353335        $size  = pow( KB_IN_BYTES, $log - $power );
  • wp-includes/functions.php

     
    237237/**
    238238 * Convert number of bytes largest unit bytes will fit into.
    239239 *
    240  * It is easier to read 1 kB than 1024 bytes and 1 MB than 1048576 bytes. Converts
     240 * It is easier to read 1 KB than 1024 bytes and 1 MB than 1048576 bytes. Converts
    241241 * number of bytes to human readable number by taking the number of that unit
    242242 * that the bytes will go into it. Supports TB value.
    243243 *
     
    259259                'TB' => TB_IN_BYTES,
    260260                'GB' => GB_IN_BYTES,
    261261                'MB' => MB_IN_BYTES,
    262                 'kB' => KB_IN_BYTES,
     262                'KB' => KB_IN_BYTES,
    263263                'B'  => 1,
    264264        );
    265265
  • wp-includes/ID3/getid3.php

     
    12991299                        // end of the comments and the end of the file (minus any trailing tags),
    13001300                        // because the page sequence numbers of the pages that the audio data is on
    13011301                        // do not match. Under normal circumstances, where comments are smaller than
    1302                         // the nominal 4-8kB page size, then this is not a problem, but if there are
     1302                        // the nominal 4-8KB page size, then this is not a problem, but if there are
    13031303                        // very large comments, the only way around it is to strip off the comment
    13041304                        // tags with vorbiscomment and MD5 that file.
    13051305                        // This procedure must be applied to ALL Ogg files, not just the ones with
  • wp-includes/ID3/module.audio-video.riff.php

     
    16931693                                                                        }
    16941694                                                                        $RIFFchunk[$LISTchunkParent][$chunkname][$thisindex]['data'] = $this->fread($chunksize);
    16951695                                                                } elseif ($chunksize < 2048) {
    1696                                                                         // only read data in if smaller than 2kB
     1696                                                                        // only read data in if smaller than 2KB
    16971697                                                                        $RIFFchunk[$chunkname][$thisindex]['data'] = $this->fread($chunksize);
    16981698                                                                } else {
    16991699                                                                        $this->fseek($chunksize, SEEK_CUR);
  • wp-includes/ID3/module.audio.mp3.php

     
    13721372
    13731373                                if ($SynchSeekOffset > $sync_seek_buffer_size) {
    13741374                                        // 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';
    13761376                                        if (isset($info['audio']['bitrate'])) {
    13771377                                                unset($info['audio']['bitrate']);
    13781378                                        }