Make WordPress Core


Ignore:
Timestamp:
02/16/2013 03:07:56 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Deprecate wp_convert_bytes_to_hr() in favor of size_format(). props F J Kaiser. fixes #19067.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r23416 r23439  
    33653365    return false;
    33663366}
     3367
     3368/**
     3369 * Converts an integer byte value to a shorthand byte value.
     3370 *
     3371 * @since 2.3.0
     3372 * @deprecated 3.6.0
     3373 * @deprecated Use size_format()
     3374 *
     3375 * @param int $bytes An integer byte value.
     3376 * @return string A shorthand byte value.
     3377 */
     3378function wp_convert_bytes_to_hr( $bytes ) {
     3379    _deprecated_function( __FUNCTION__, '3.6', 'size_format()' );
     3380    return size_format( $bytes );
     3381}
Note: See TracChangeset for help on using the changeset viewer.