mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
Helper comment and lowercase filenames before playing around with them, to avoid extension duplication.
git-svn-id: https://develop.svn.wordpress.org/trunk@7478 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user