Permalink
Browse files

Increase memory limit. Props darkdragon. see #3141

git-svn-id: http://svn.automattic.com/wordpress/trunk@6681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 7d78a53 commit 5c2f29c467bef1181bd95dde479adacf451b7cc2 ryan committed Jan 29, 2008
Showing with 6 additions and 0 deletions.
  1. +6 −0 wp-settings.php
View
@@ -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
*

0 comments on commit 5c2f29c

Please sign in to comment.