Changeset 17749
- Timestamp:
- 04/28/2011 04:25:36 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r17748 r17749 107 107 108 108 if ( current_user_can( 'manage_options' ) ) 109 @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', '256M') );109 @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) ); 110 110 111 111 do_action('admin_init'); -
trunk/wp-admin/includes/file.php
r17693 r17749 519 519 520 520 // 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 ) ); 522 522 523 523 $needed_dirs = array(); -
trunk/wp-admin/includes/image-edit.php
r17603 r17749 392 392 function stream_preview_image($post_id) { 393 393 $post = get_post($post_id); 394 @ini_set( 'memory_limit', '256M');394 @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) ); 395 395 $img = load_image_to_edit( $post_id, $post->post_mime_type, array(400, 400) ); 396 396 … … 497 497 $success = $delete = $scaled = $nocrop = false; 498 498 $post = get_post($post_id); 499 @ini_set( 'memory_limit', '256M');499 @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) ); 500 500 $img = load_image_to_edit($post_id, $post->post_mime_type); 501 501 -
trunk/wp-includes/default-constants.php
r17745 r17749 25 25 } 26 26 27 if ( ! defined( 'WP_MAX_MEMORY_LIMIT' ) ) { 28 define( 'WP_MAX_MEMORY_LIMIT', '256M' ); 29 } 30 27 31 /** 28 32 * The $blog_id global, which you can change in the config allows you to create a simple -
trunk/wp-includes/media.php
r17631 r17749 251 251 252 252 // 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 ) ); 254 254 $image = imagecreatefromstring( file_get_contents( $file ) ); 255 255 -
trunk/wp-settings.php
r17727 r17749 21 21 require( ABSPATH . WPINC . '/version.php' ); 22 22 23 // Set initial default constants including WP_MEMORY_LIMIT, WP_ DEBUG, WP_CONTENT_DIR and WP_CACHE.23 // Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE. 24 24 wp_initial_constants( ); 25 25
Note: See TracChangeset
for help on using the changeset viewer.