diff --git a/wp-includes/default-constants.php b/wp-includes/default-constants.php index 79e16428ed..f1c0320a6f 100644 --- a/wp-includes/default-constants.php +++ b/wp-includes/default-constants.php @@ -58,6 +58,8 @@ function wp_initial_constants() { define( 'WP_MAX_MEMORY_LIMIT', $current_limit ); } elseif ( -1 === $current_limit_int || $current_limit_int > 268435456 /* = 256M */ ) { 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 { define( 'WP_MAX_MEMORY_LIMIT', '256M' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 38331689fd..929903c120 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @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.