diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-includes/default-constants.php --- a/wp/wp-includes/default-constants.php Fri Sep 05 18:40:08 2025 +0200 +++ b/wp/wp-includes/default-constants.php Fri Sep 05 18:52:52 2025 +0200 @@ -56,8 +56,10 @@ if ( ! defined( 'WP_MAX_MEMORY_LIMIT' ) ) { if ( false === wp_is_ini_value_changeable( 'memory_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 > 256 * MB_IN_BYTES ) { define( 'WP_MAX_MEMORY_LIMIT', $current_limit ); + } elseif ( wp_convert_hr_to_bytes( WP_MEMORY_LIMIT ) > 256 * MB_IN_BYTES ) { + define( 'WP_MAX_MEMORY_LIMIT', WP_MEMORY_LIMIT ); } else { define( 'WP_MAX_MEMORY_LIMIT', '256M' ); } @@ -432,6 +434,6 @@ * @see WP_Theme::get_core_default_theme() */ if ( ! defined( 'WP_DEFAULT_THEME' ) ) { - define( 'WP_DEFAULT_THEME', 'twentytwentyfour' ); + define( 'WP_DEFAULT_THEME', 'twentytwentyfive' ); } }