WordPress.org

Make WordPress Core

Ticket #3141: mem_limit.diff

File mem_limit.diff, 508 bytes (added by ryan, 10 years ago)
  • wp-settings.php

     
    99 * @package WordPress
    1010 */
    1111
     12if ( !defined('WP_MEMORY_LIMIT') )
     13        define('WP_MEMORY_LIMIT', '32M');
     14
     15if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < abs(intval(WP_MEMORY_LIMIT)) ) )
     16        @ini_set('memory_limit', WP_MEMORY_LIMIT);
     17
    1218/**
    1319 * wp_unregister_GLOBALS() - Turn register globals off
    1420 *