Make WordPress Core


Ignore:
Timestamp:
03/18/2022 08:46:17 PM (4 years ago)
Author:
johnbillion
Message:

Formatting: Add support for formatting sizes as PB, EB, ZB, and YB.

Props henry.wright, Presskopp

Fixes #40875

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-constants.php

    r52610 r52955  
    2323     *
    2424     * @since 4.4.0
     25     * @since 6.0.0 `PB_IN_BYTES`, `EB_IN_BYTES`, `ZB_IN_BYTES`, and `YB_IN_BYTES` were added.
    2526     */
    2627    define( 'KB_IN_BYTES', 1024 );
     
    2829    define( 'GB_IN_BYTES', 1024 * MB_IN_BYTES );
    2930    define( 'TB_IN_BYTES', 1024 * GB_IN_BYTES );
     31    define( 'PB_IN_BYTES', 1024 * TB_IN_BYTES );
     32    define( 'EB_IN_BYTES', 1024 * PB_IN_BYTES );
     33    define( 'ZB_IN_BYTES', 1024 * EB_IN_BYTES );
     34    define( 'YB_IN_BYTES', 1024 * ZB_IN_BYTES );
    3035    /**#@-*/
    3136
Note: See TracChangeset for help on using the changeset viewer.