WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/06/2010 09:36:55 PM (10 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r13579 r14491  
    8585require(ABSPATH . 'wp-admin/menu.php');
    8686
     87if ( current_user_can( 'manage_options' ) )
     88    @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', '256M' ) );
     89
    8790do_action('admin_init');
    8891
Note: See TracChangeset for help on using the changeset viewer.