Make WordPress Core


Ignore:
Timestamp:
04/28/2011 04:25:36 PM (14 years ago)
Author:
westi
Message:

Introduce WP_MAX_MEMORY_LIMIT constant for the high memory limit we set when image processing and unzipping.
Ensure it is always filterable by plugins as well as configurable in wp-config
Fixes #13847 props hakre

File:
1 edited

Legend:

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

    r17693 r17749  
    519519
    520520    // Unzip can use a lot of memory, but not this much hopefully
    521     @ini_set('memory_limit', '256M');
     521    @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) );
    522522
    523523    $needed_dirs = array();
Note: See TracChangeset for help on using the changeset viewer.