WordPress.org

Make WordPress Core

Ticket #37037: 37037.diff

File 37037.diff, 658 bytes (added by lukecavanagh, 6 years ago)

Patch for deprecated.php

  • deprecated.php

     
     1
    12<?php
    23/**
    34 * Deprecated functions from past WordPress versions. You shouldn't use these
     
    33293330function wp_convert_bytes_to_hr( $bytes ) {
    33303331        _deprecated_function( __FUNCTION__, '3.6', 'size_format()' );
    33313332
    3332         $units = array( 0 => 'B', 1 => 'kB', 2 => 'MB', 3 => 'GB', 4 => 'TB' );
     3333        $units = array( 0 => 'B', 1 => 'KB', 2 => 'MB', 3 => 'GB', 4 => 'TB' );
    33333334        $log   = log( $bytes, KB_IN_BYTES );
    33343335        $power = (int) $log;
    33353336        $size  = pow( KB_IN_BYTES, $log - $power );