mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Deprecate wp_convert_bytes_to_hr() in favor of size_format(). props F J Kaiser. fixes #19067.
git-svn-id: https://develop.svn.wordpress.org/trunk@23439 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3364,3 +3364,18 @@ function gd_edit_image_support($mime_type) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts an integer byte value to a shorthand byte value.
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @deprecated 3.6.0
|
||||
* @deprecated Use size_format()
|
||||
*
|
||||
* @param int $bytes An integer byte value.
|
||||
* @return string A shorthand byte value.
|
||||
*/
|
||||
function wp_convert_bytes_to_hr( $bytes ) {
|
||||
_deprecated_function( __FUNCTION__, '3.6', 'size_format()' );
|
||||
return size_format( $bytes );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user