Ticket #13847: 13847.patch
File 13847.patch, 3.5 KB (added by , 15 years ago) |
---|
-
wp-admin/includes/file.php
Property changes on: . ___________________________________________________________________ Added: svn:ignore + .project .buildpath .settings
529 529 return new WP_Error('fs_unavailable', __('Could not access filesystem.')); 530 530 531 531 // Unzip can use a lot of memory, but not this much hopefully 532 @ini_set('memory_limit', '256M');532 @ini_set('memory_limit', WP_MAX_MEMORY_LIMIT); 533 533 534 534 $needed_dirs = array(); 535 535 $to = trailingslashit($to); -
wp-admin/includes/image-edit.php
390 390 391 391 function stream_preview_image($post_id) { 392 392 $post = get_post($post_id); 393 @ini_set('memory_limit', '256M');393 @ini_set('memory_limit', WP_MAX_MEMORY_LIMIT); 394 394 $img = load_image_to_edit( $post_id, $post->post_mime_type, array(400, 400) ); 395 395 396 396 if ( !is_resource($img) ) … … 495 495 $return = ''; 496 496 $success = $delete = $scaled = $nocrop = false; 497 497 $post = get_post($post_id); 498 @ini_set('memory_limit', '256M');498 @ini_set('memory_limit', WP_MAX_MEMORY_LIMIT); 499 499 $img = load_image_to_edit($post_id, $post->post_mime_type); 500 500 501 501 if ( !is_resource($img) ) { -
wp-admin/admin.php
99 99 require(ABSPATH . 'wp-admin/menu.php'); 100 100 101 101 if ( current_user_can( 'manage_options' ) ) 102 @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', '256M') );102 @ini_set( 'memory_limit', apply_filters( 'admin_memory_limit', WP_MAX_MEMORY_LIMIT ) ); 103 103 104 104 do_action('admin_init'); 105 105 -
wp-includes/default-constants.php
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-includes/media.php
249 249 return __('The GD image library is not installed.'); 250 250 251 251 // Set artificially high because GD uses uncompressed images in memory 252 @ini_set('memory_limit', '256M');252 @ini_set('memory_limit', WP_MAX_MEMORY_LIMIT); 253 253 $image = imagecreatefromstring( file_get_contents( $file ) ); 254 254 255 255 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.