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:
parent
c7dcfa6261
commit
712f33944b
|
@ -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'];
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue