From 890a2f8ed7ab5106f5b71c5e4a7c3cbdb586d309 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 29 Jan 2008 17:25:45 +0000 Subject: [PATCH] Increase memory limit. Props darkdragon. see #3141 git-svn-id: https://develop.svn.wordpress.org/trunk@6681 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-settings.php b/wp-settings.php index 40b00ea30a..5fc0cf53ca 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -9,6 +9,12 @@ * @package WordPress */ +if ( !defined('WP_MEMORY_LIMIT') ) + define('WP_MEMORY_LIMIT', '32M'); + +if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < abs(intval(WP_MEMORY_LIMIT)) ) ) + @ini_set('memory_limit', WP_MEMORY_LIMIT); + /** * wp_unregister_GLOBALS() - Turn register globals off *