diff --git a/wp-settings.php b/wp-settings.php index 8732710ff..5fc0cf53c 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -12,7 +12,7 @@ if ( !defined('WP_MEMORY_LIMIT') ) define('WP_MEMORY_LIMIT', '32M'); -if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < absint(WP_MEMORY_LIMIT) ) ) +if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < abs(intval(WP_MEMORY_LIMIT)) ) ) @ini_set('memory_limit', WP_MEMORY_LIMIT); /**