WPINC_default constants.php Notes - WordPress-Thinstall/wordpress-develop GitHub Wiki

This is not an interface the below are global functions but for the purpose of documenting and my sanity I'm going to pretend that WPINC/default-constants.php is not a lot of global functions.

<?php

interface DefaultConstantsInterface {
    public static function wp_initial_constants()
    public static function wp_plugin_directory_constants()
    public static function wp_cookie_constants()
    public static function wp_ssl_constants()
    public static function wp_functionality_constants()
    public static function wp_templating_constants()
}

Rather interestingly some of these constants could / should live outside of WP in another repo would be cool for the world (maybe a few more and more accurate as I'm pretty sure there are more accurate numbers out there).

	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( 'MINUTE_IN_SECONDS', 60 );
	define( 'HOUR_IN_SECONDS',   60 * MINUTE_IN_SECONDS );
	define( 'DAY_IN_SECONDS',    24 * HOUR_IN_SECONDS   );
	define( 'WEEK_IN_SECONDS',    7 * DAY_IN_SECONDS    );
	define( 'MONTH_IN_SECONDS',  30 * DAY_IN_SECONDS    );
	define( 'YEAR_IN_SECONDS',  365 * DAY_IN_SECONDS    );