Increase memory limit. Props darkdragon. see #3141

git-svn-id: https://develop.svn.wordpress.org/trunk@6681 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-01-29 17:25:45 +00:00
parent 222e9ca396
commit 890a2f8ed7

View File

@ -9,6 +9,12 @@
* @package WordPress * @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 * wp_unregister_GLOBALS() - Turn register globals off
* *