WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/28/11 16:25:36 (7 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-includes/media.php

    r17631 r17749  
    251251 
    252252    // Set artificially high because GD uses uncompressed images in memory 
    253     @ini_set('memory_limit', '256M'); 
     253    @ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) ); 
    254254    $image = imagecreatefromstring( file_get_contents( $file ) ); 
    255255 
Note: See TracChangeset for help on using the changeset viewer.