mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 07:58:35 +01:00
Administration: Avoid using WP_MAX_MEMORY_LIMIT
default that is smaller than WP_MEMORY_LIMIT
.
Props eclare, dd32, pbearne. Fixes #36426. Built from https://develop.svn.wordpress.org/trunk@58937 git-svn-id: http://core.svn.wordpress.org/trunk@58333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9e650efbb8
commit
ddd7f2142e
@ -58,6 +58,8 @@ function wp_initial_constants() {
|
|||||||
define( 'WP_MAX_MEMORY_LIMIT', $current_limit );
|
define( 'WP_MAX_MEMORY_LIMIT', $current_limit );
|
||||||
} elseif ( -1 === $current_limit_int || $current_limit_int > 268435456 /* = 256M */ ) {
|
} elseif ( -1 === $current_limit_int || $current_limit_int > 268435456 /* = 256M */ ) {
|
||||||
define( 'WP_MAX_MEMORY_LIMIT', $current_limit );
|
define( 'WP_MAX_MEMORY_LIMIT', $current_limit );
|
||||||
|
} elseif ( wp_convert_hr_to_bytes( WP_MEMORY_LIMIT ) > 268435456 /* = 256M */ ) {
|
||||||
|
define( 'WP_MAX_MEMORY_LIMIT', WP_MEMORY_LIMIT );
|
||||||
} else {
|
} else {
|
||||||
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
|
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.7-alpha-58936';
|
$wp_version = '6.7-alpha-58937';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user