Helper comment and lowercase filenames before playing around with them, to avoid extension duplication.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2008-03-22 19:34:21 +00:00
parent c7dcfa6261
commit 712f33944b
2 changed files with 2 additions and 1 deletions

View File

@ -1120,7 +1120,7 @@ function wp_upload_dir( $time = NULL ) {
// return a filename that is sanitized and unique for the given directory
function wp_unique_filename( $dir, $filename, $unique_filename_callback = NULL ) {
$filename = strtolower( $filename );
// separate the filename into a name and extension
$info = pathinfo($filename);
$ext = $info['extension'];

View File

@ -366,6 +366,7 @@ function gallery_shortcode($attr) {
border: 2px solid #cfcfcf;
}
</style>
<!-- see gallery_shortcode() in wp-includes/media.php -->
<div class='gallery'>");
foreach ( $attachments as $id => $attachment ) {