mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Formatting: Add support for formatting sizes as PB, EB, ZB, and YB.
Props henry.wright, Presskopp Fixes #40875 git-svn-id: https://develop.svn.wordpress.org/trunk@52955 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -22,11 +22,16 @@ function wp_initial_constants() {
|
||||
* Constants for expressing human-readable data sizes in their respective number of bytes.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @since 6.0.0 `PB_IN_BYTES`, `EB_IN_BYTES`, `ZB_IN_BYTES`, and `YB_IN_BYTES` were added.
|
||||
*/
|
||||
define( 'KB_IN_BYTES', 1024 );
|
||||
define( 'MB_IN_BYTES', 1024 * KB_IN_BYTES );
|
||||
define( 'GB_IN_BYTES', 1024 * MB_IN_BYTES );
|
||||
define( 'TB_IN_BYTES', 1024 * GB_IN_BYTES );
|
||||
define( 'PB_IN_BYTES', 1024 * TB_IN_BYTES );
|
||||
define( 'EB_IN_BYTES', 1024 * PB_IN_BYTES );
|
||||
define( 'ZB_IN_BYTES', 1024 * EB_IN_BYTES );
|
||||
define( 'YB_IN_BYTES', 1024 * ZB_IN_BYTES );
|
||||
/**#@-*/
|
||||
|
||||
// Start of run timestamp.
|
||||
|
||||
Reference in New Issue
Block a user