Lowercase extensions too, dynamically change when we try to create thumbnails by memory limit.

git-svn-id: https://develop.svn.wordpress.org/trunk@6783 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2008-02-11 08:02:01 +00:00
parent ea1c1ac2a6
commit 129dddd3a3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1070,7 +1070,7 @@ function wp_unique_filename( $dir, $filename, $unique_filename_callback = NULL )
// separate the filename into a name and extension
$info = pathinfo($filename);
$ext = $info['extension'];
$ext = strtolower( $info['extension'] );
$name = basename($filename, ".{$ext}");
// Increment the file number until we have a unique file to save in $dir. Use $override['unique_filename_callback'] if supplied.