Constants: Move constants for data sizes before constants for memory limits.
This allows us to improve core's memory limit handling. See #32075. Built from https://develop.svn.wordpress.org/trunk@38011 git-svn-id: http://core.svn.wordpress.org/trunk@37952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b9b69676d8
commit
561018677f
|
@ -17,6 +17,17 @@
|
||||||
function wp_initial_constants() {
|
function wp_initial_constants() {
|
||||||
global $blog_id;
|
global $blog_id;
|
||||||
|
|
||||||
|
/**#@+
|
||||||
|
* Constants for expressing human-readable data sizes in their respective number of bytes.
|
||||||
|
*
|
||||||
|
* @since 4.4.0
|
||||||
|
*/
|
||||||
|
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 );
|
||||||
|
/**#@-*/
|
||||||
|
|
||||||
// set memory limits
|
// set memory limits
|
||||||
if ( !defined('WP_MEMORY_LIMIT') ) {
|
if ( !defined('WP_MEMORY_LIMIT') ) {
|
||||||
if ( is_multisite() ) {
|
if ( is_multisite() ) {
|
||||||
|
@ -110,17 +121,6 @@ function wp_initial_constants() {
|
||||||
define( 'MONTH_IN_SECONDS', 30 * DAY_IN_SECONDS );
|
define( 'MONTH_IN_SECONDS', 30 * DAY_IN_SECONDS );
|
||||||
define( 'YEAR_IN_SECONDS', 365 * DAY_IN_SECONDS );
|
define( 'YEAR_IN_SECONDS', 365 * DAY_IN_SECONDS );
|
||||||
/**#@-*/
|
/**#@-*/
|
||||||
|
|
||||||
/**#@+
|
|
||||||
* Constants for expressing human-readable data sizes in their respective number of bytes.
|
|
||||||
*
|
|
||||||
* @since 4.4.0
|
|
||||||
*/
|
|
||||||
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 );
|
|
||||||
/**#@-*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.6-beta2-38010';
|
$wp_version = '4.6-beta2-38011';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue