Changeset 6783
- Timestamp:
- 02/11/08 08:02:01 (10 months ago)
- Files:
-
- trunk/wp-admin/includes/image.php (modified) (1 diff)
- trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/includes/image.php
r6726 r6783 151 151 $metadata['file'] = $file; 152 152 153 $max = apply_filters( 'wp_thumbnail_creation_size_limit', 3* 1024 * 1024, $attachment_id, $file );153 $max = apply_filters( 'wp_thumbnail_creation_size_limit', abs( inval( WP_MEMORY_LIMIT ) ) * 1024 * 1024, $attachment_id, $file ); 154 154 155 155 if ( $max < 0 || $metadata['width'] * $metadata['height'] < $max ) { trunk/wp-includes/functions.php
r6780 r6783 1071 1071 // separate the filename into a name and extension 1072 1072 $info = pathinfo($filename); 1073 $ext = $info['extension'];1073 $ext = strtolower( $info['extension'] ); 1074 1074 $name = basename($filename, ".{$ext}"); 1075 1075
