Ticket #13847: 13847.3.patch
File 13847.3.patch, 3.5 KB (added by , 14 years ago) |
---|
-
wp-includes/default-constants.php
### Eclipse Workspace Patch 1.0 #P wordpress-trunk bare
23 23 define('WP_MEMORY_LIMIT', '32M'); 24 24 } 25 25 } 26 27 if ( !defined('WP_MAX_MEMORY_LIMIT') ) { 28 define('WP_MAX_MEMORY_LIMIT', '256M'); 29 } 26 30 27 31 /** 28 32 * The $blog_id global, which you can change in the config allows you to create a simple -
wp-admin/admin.php
106 106 require(ABSPATH . 'wp-admin/menu.php'); 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'); 112 112 -
wp-admin/includes/file.php
563 563 return new WP_Error('fs_unavailable', __('Could not access filesystem.')); 564 564 565 565 // Unzip can use a lot of memory, but not this much hopefully 566 @ini_set( 'memory_limit', '256M');566 @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) ); 567 567 568 568 $needed_dirs = array(); 569 569 $to = trailingslashit($to); -
wp-includes/media.php
250 250 return __('The GD image library is not installed.'); 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', WP_MAX_MEMORY_LIMIT); 254 254 $image = imagecreatefromstring( file_get_contents( $file ) ); 255 255 256 256 if ( !is_resource( $image ) ) -
wp-settings.php
20 20 require( ABSPATH . WPINC . '/default-constants.php' ); 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 26 26 // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php. -
wp-admin/includes/image-edit.php
391 391 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 397 397 if ( !is_resource($img) ) … … 496 496 $return = new stdClass; 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 502 502 if ( !is_resource($img) ) {