Bump memory_limit for admins in wp-admin. Should help in imports, upgrades, uploads, etc. props MarkJaquith.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-06 21:36:55 +00:00
parent c24de5caf8
commit e07bcb1a0e
1 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,9 @@ else
require(ABSPATH . 'wp-admin/menu.php');
if ( current_user_can( 'manage_options' ) )
@ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', '256M' ) );
do_action('admin_init');
if ( isset($plugin_page) ) {